Solved

exe sizes.....

Posted on 1999-01-20
5
194 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 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