What is the best way to write modular program?

Hi,

   I have MDIForm project but that project's file size is getting larger and larger and it takes more time on the client side to run the program.   I want to create delphi packages to modularize project but i have alot of components that i am using in the project.(Like fast report, developer express components, TMS Software, Raize Components, SDAC Components etc.)  When i check the 'Build with runtime packages' option there are a lof of packages that i need to distribute with the program.  What is the best way to modularize the program according to above scenario.
    Thanks in advance.
mhanefitelAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ioannis AnifantakisProgramming InstructorCommented:
You cannot avoid the design time packages, as long as you decide to build with design time packages, and you use lots of components.

I myself, use almost the same components as you described in my applications.

So you can do one of the following:
1) Don't build with runtime packages
2) Build with runtime packages and have lots of packages to follow your exe.
3) Cut your code in sub-projects.

More specifically for (3) you can cut down some of your forms in DLLs.
More about "creating forms in DLLs for delphi" or generally "delphi and dlls" here:
http://delphi.about.com/od/objectpascalide/a/dlldelphi.htm
http://www.delphi-central.com/formdll.aspx
http://www.link-rank.com/dll.htm

Or even better create plugin forms or plugin panels.

To create plugin panels and forms is the best way for me and I use a very usefull middleware called "Hydra" from RemObjects.

With Hydra you can assign your main app to be the "host" application and then build visual and nonvisual plugins as subprojects.  The amazing with hydra is that you can build these plugins either in Delphi or in VisualStudio and attach these visual/nonvisual plugins to your main application.

That way you will cut down your code in easily managed sub-projects while at the same time you will open a window to your application to accept 3rd party plugins build in C# or VisualBasic.

To find more about hydra go here:
http://www.remobjects.com/hydra.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Geert GOracle dbaCommented:
here is a site from Colibri
it even shows how to use the design patterns

http://www.felix-colibri.com/papers/design_patterns/the_lexi_editor/the_lexi_editor.html

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.