Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is too many .VCX is too many?
Message
 
 
To
07/03/2011 17:56:33
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01502837
Message ID:
01502876
Views:
58
Hi Charlie,
The reason I want to keep each class into its own classlib is for the exact same reason you stated. To avoid having VFP pull tons of classes into a "sub-project" when I only need to use one or two classes. My .EXE is about 11MB and I was concerned about performance. Since you are saying that 42 MB is not a big deal, I won't worry about increasing size of the .EXE.
Thank you very much.


>Hi Dmitry,
>Mike Yearwood advocated this one class per classlib and with common classes that is what I do. We have over 300 classes in a common folder. Most project specific classes are in a single classlibrary, always named the same, MyApp. Sometimes for ease of use we divide things into a few more.
>I have EXEs that are 42 MBs, mostly because of all the template, XLTX, type files that are included. We don't have any issues with performance, so I don't really worry about the size.
>When we first started with OOP developement we put common controls, forms, etc, into classlibrary files, grouping by type. We are still paying for that. If I reference one of the old classes, suddenly every one of those original classlibraries is brought into my project.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform