Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a class compiled in another VCX
Message
 
To
18/06/2006 11:33:10
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01129794
Message ID:
01129811
Views:
24
>>Nicola,
>>Don't know, but have you tried
>>
>>SET CLASSLIB TO MYTEXTBOX.VCX IN MAIN.EXE  ADDITIVE
>>
>
>Sure.
>In the init sequence of my application, I launch a method setClasses() that does exactly this.
>
>Moreover, to call an external form (the one included in CHILD.EXE, just to be clear), I use a procedure DoForm() contained in MYLIBRARY.PRG (this PRG is built in the MAIN.EXE).
>This procedure instantiates an object (oModule) contained in a common class MODULE stored in MODULE.VCX (included in every project).
>Once created oModule, I fire the method oModule.doForm(myformname).
>All this, just to say that even repeating the set class at this time, the error persists.
>
>Nicola

It works for me.
Just make sure you pass the fullpath to Your Main.EXE:

SET CLASSLIB TO MYTEXTBOX.VCX IN C:\whatever\MAIN.EXE ADDITIVE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform