Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using .vcx compiled in one .exe by another .exe
Message
 
 
À
18/05/2001 11:19:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00508751
Message ID:
00508774
Vues:
17
Hi!

In the main.exe make a function in the procedure file that sets class library for you. Load procedure file into the memory using SET PROCEDURE command in main.exe. In the chlid EXE function is available. Call it to set class library. Because function works "inside" if the main.exe, it will see the class library and will set it correctly.

>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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform