Archived

This topic is now archived and is closed to further replies.

Delphi Question?!!!

This topic is 5705 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi How come Delphi’s apps are relatively large , an application with just a form and with no extra code is more than 200kb in size, is there a way to reduce the size with out using run time packages. Thanks in advance

Share this post


Link to post
Share on other sites
Turbo is probably the forum you want to ask this in but anyway...

A ''default'' delphi app uses VCL (Visual Component Library) for forms, buttons, etc. The is a large hierarchy of objects that makes it very easy to create win32 interfaces. Unfortunately that means that for even a simple form you need to include the TForm code and all its decendents. Languages like visual basic get around this by sticking all of their common code in dlls files, however this means that if a user doesn''t have the right version of the dll on their computer they get treat to one of the "tab32ctrl.ocx invalid" or similar errors when they try to start an app. If you want smaller Delphi apps you can remove all the forms from your app and code it using just windows api calls instead of the VCL.

Share this post


Link to post
Share on other sites