Closed Thread Icon

Topic awaiting preservation: programming question. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12488" title="Pages that link to Topic awaiting preservation: programming question. (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: programming question. <span class="small">(Page 1 of 1)</span>\

 
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-23-2002 21:01

ok, whenever i write a little win32 app. the exe gets interestingly big. ~300K only for a helloworld thing. no matter if i use VC++ or Delphi. but ive seen exes that do much more (demos) at only 64K. how is that possible? assembler?

and does anyone know of a good VC++ reference somewhere? cause my version hasnt got it. i know the winAPI is at MSDN.

olzn
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jul 2002

posted posted 10-23-2002 21:26

VC+++ Includes some "extra code" so the program can run on several different machines without any extra dlls. I think you can change this in the compiling settings.
The best programming reference if youre coding true win32api programs is the winAPI .
Demos are coded in assembler or C I think... I prefer C++ instead of VC++ because the only visual of VC++ is the interface. (My dataprof. says this all the time)

A True WinApi assembler MASM32

Edit: ooooohh masm reference with a great design to. My lucky day!



[This message has been edited by olzn (edited 10-23-2002).]

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-23-2002 22:26

ahhh. that might be it. thanks.

argh. it needs 40 lines of code in VC++ just to make a simple window.
in delphi this i much shorter.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-24-2002 18:25

one more Q:

which one do you suggest if you are goin for straight win32 app programming:

the MFCs or the pure WinAPI?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-24-2002 19:16

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-24-2002 19:27

makes sense, yes. but still its an exe which must contain an uncompression algorithm. incredibly low size. hehe.
thanks.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-24-2002 19:34

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-24-2002 22:09

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 10-25-2002 17:50

Grumble, if you want to make really small (file size) applications with Delphi, take a look at Key Objects Library...


lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 10-26-2002 09:09

Hello Grumble,

In delphi you can make a console app for "Hello World" in less than 40kb w/o compression.

In VC you can even make it for 20kb or less and even if it was GUI.

The key point when using VC is not to compile with static libraries and instead let it use the libraries that already exist in the system (mfcXX.dll) <--that if you were using MFC.

Yes, it is true that if you want to make smaller EXEs you have to use less libraries and or simplify their functionalities to meet your needs.

Meanwhile, you can still compress your executables via known packers like: http://upx.tsx.org http://www.aspack.com/
PeCompact (Collake Software), Bits-Arts cruncher, ....




Elias,

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-26-2002 11:38

wow. thank you all for the information.
just got a VC++ book, that enlightens me further.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 10-26-2002 18:50

ok, grumble, I've a few years of delphi experience, so here is some advice for ya...

1) Forms (ie. using the unit) eat about 250 kb. You can either create all your windows by hand (see Petzolds 'Windows Programming' for that. (but if you throw that book at someone he'll be hurt by it's weight), or search for a more lightwight alternative. I know there is one, but can't remember it's name.
Sysutils needs quite a bit too.

2) Try out UPX. It's a free exe-packer, and works pretty well. (could be .org or .net. not sure right now.)

so long,

Tyberius Prime

« BackwardsOnwards »

Show Forum Drop Down Menu