Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating APP of globally used classes and code
Message
From
22/01/2007 13:12:59
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01186153
Message ID:
01187756
Views:
16
>Subclass is required by me at design time mostly. Now how can I hide as well as allow subclass at design time. In any case when the project is compiled it will start looking for the parent class libs. How can this be countered.
>
>Please advise.

I put my common classlibs in _Common subdirectory of my Projects directory. It is imprtant to preserve relative location of application files and parent class library because VCX store parent classlib as relative path.
Then I can subclass my common classes as usually. When I compile my project used common class libraries will be automatically added to project. No problem - I just exclude them from compilation (right click on classlibrary -> Exclude) and recompile application again.
Before adding to distribution package I remove source code from common VCX files. I have hand-writeen utility to do so and call it from setup compiler NSIS.
On user PC my intaller installs common libs to ..Program Files\MyCompany\_Common and my applications to ..Program Files\MyCompany\MyApp. The user cannot change this. This is needed to preserve relative location of application and common class libraries as I described above.
Thats all. Now, if I change something in common classes I'm able to update them without rebuilding and distributing my applications.
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform