Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a class compiled in another VCX
Message
De
18/06/2006 11:43:33
 
 
À
18/06/2006 11:33:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01129794
Message ID:
01129810
Vues:
15
>>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

Nicola,


At the start of your exe, make sure to set classlib to each class you may need.
The set of (SET CLASSIB TO ...) should be done only once imo

In oModule.doForm() do (to check)
acti screen
?set('Classib')
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform