Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using .vcx compiled in one .exe by another .exe
Message
From
18/05/2001 11:19:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Using .vcx compiled in one .exe by another .exe
Miscellaneous
Thread ID:
00508751
Message ID:
00508751
Views:
53
Ok, I'm sure I'm missing something rather simple here, but I can't get this to work...

My main custom class library gets compiled in with my main application, which all totals just under 1 MB. I know that's not large by any means, but I'm creating some utilities and a new module and would like to have them as their own .exes, no big deal. I've created a new project and added the main class library to it, but excluded it so that it won't compile in this new utility's .exe. The utility only consists of one prg and one form, and in the prg I've tried to include: SET CLASSLIB TO mainlib IN main.exe ADDITIVE ALIAS mainlib2. Well for whatever reason, I get a unrecognized phrase/keyword error when trying to use the ALIAS option. So I drop the ALIAS and everything compiles fine.

When I run the main app and try to launch the utility from the menu, I get the "Error instantiating class. Cannot find ...\mainlib.vcx". Isn't it supposed to just use the library that was compiled in the main.exe??? Why can't FoxPro "find" it? The curdir() is right where the main.exe is so it knows the main.exe is right there...

Is what I'm wanting to do even possible or do I have to include the class library in the compilation of all the utilities and new modules?


Thanks for your help,

- Brian


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Next
Reply
Map
View

Click here to load this message in the networking platform