Solved

exe sizes.....

Posted on 1999-01-20
5
195 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
ID: 1362648
Also, the only thing in the uses clause is   Sysutils, Dialogs;

0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 70 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Print Graphic and Text to Epson TM-T88v 12 367
Adoquery sql  left join does not work 25 98
DBCtrlGrid, Delphi, Scroll 7 24
shape, triangle, dbctrlgrid 3 17
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

791 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