Solved

exe sizes.....

Posted on 1999-01-20
5
191 Views
Last Modified: 2010-04-06
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
0
Comment
Question by:jexd99
  • 3
  • 2
5 Comments
 

Author Comment

by:jexd99
Comment Utility
Also, the only thing in the uses clause is   Sysutils, Dialogs;

0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 70 total points
Comment Utility
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
 
LVL 12

Expert Comment

by:rwilson032697
Comment Utility
... You can use the API function MessageBox as a replacement for MessageDlg.

Cheers,

Raymond.
0
 

Author Comment

by:jexd99
Comment Utility
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
 

Author Comment

by:jexd99
Comment Utility
Dialogs is a hog itself....... mission accomplished :-)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now