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 12:08:48
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00508751
Message ID:
00508789
Views:
27
Hi!

Well, did you used 'ADDITIVE' When setting VCX second time? WIthout that second SET CLASSLIB overrides the first one. WIth ADDITIVE both libraries will be loaded in the memory.

BTW, for debugging purposes, just display the result of the 'SET("CLASSLIB")' function. This way you will see wich libraries are currently loaded.

HTH.

>>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.
>>
>
>Vlad,
>
>I currently SET CLASSLIB TO mainlib.vcx in the main.prg during the SetPath() function. I also open a another classlib in the oApp.Init to read an .ini file. Shouldn't this achieve the same result?
>
>Or are you saying that I have to create a separate file (myproc.prg) with just the SET CLASSLIB TO commmand, then SET PROCEDURE TO myproc.prg in the main.prg where I presently SET CLASSLIB?
>
>
>- 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform