exe sizes.....

Can small exe's be made with Delphi? (by "small" I mean less than 50k).  I placed some code in the *.dpr that does file i/o, then removed the "createform" line, yet still the exe size is 200k. Is there a way to make the exe size small?
Thanks
jexd99Asked:
Who is Participating?
 
rwilson032697Commented:
Yes. Here are some tips for v.small delphi exes.

1. Don't use forms.
2. Do away with the Application object (you can do your own message handling if required).
3. You can remove the dialogs unit if you are only using things like MessageDlg - use the API equivalents instead.

Cheers,

Raymond.


0
 
jexd99Author Commented:
Also, the only thing in the uses clause is   Sysutils, Dialogs;

0
 
rwilson032697Commented:
... You can use the API function MessageBox as a replacement for MessageDlg.

Cheers,

Raymond.
0
 
jexd99Author Commented:
It looks like I need to use api for everything (i.e. file i/o - findfirst, reading, writing).  I don't use forms, and I don't use the application object... still 200+k in size.

0
 
jexd99Author Commented:
Dialogs is a hog itself....... mission accomplished :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.