?
Solved

exe sizes.....

Posted on 1999-01-20
5
Medium Priority
?
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:jexd99
ID: 1362648
Also, the only thing in the uses clause is   Sysutils, Dialogs;

0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 210 total points
ID: 1362649
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
ID: 1362650
... You can use the API function MessageBox as a replacement for MessageDlg.

Cheers,

Raymond.
0
 

Author Comment

by:jexd99
ID: 1362651
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
ID: 1362652
Dialogs is a hog itself....... mission accomplished :-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

764 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