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:19:54
 
 
À
18/06/2006 10:37:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01129794
Message ID:
01129803
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>>Try:
>>
>>oMyVCXClassinMainEXE = NEWOBJECT([ClassName],[ClassVCX.VCX],full_path+[Main.EXE])
>>
>
>Thank you Borislav,
>but I think that this would not help.
>
>Infact, I create objects stored in classes compiled in the MAIN.EXE without problems.
>
>Is when I try to launch a form compiled in the CHILD.EXE that uses classes stored in the MAIN.EXE that I got the infamous "ERROR INSTANTIATING CLASS" error.
>
>Example:
>The MAIN.EXE includes a MYTEXTBOX.VCX class.
>The MYTEXTBOX.VCX class includes a class named TEXTBOX_EMAIL.
>
>I use this class in many cases and therefore in many forms.
>
>AT DESIGN TIME, in a form contained in the CHILD.EXE, I add a TEXTBOX_EMAIL control.
>
>The MYTEXTBOX.VCX in included in the MAIN.EXE and excluded in the CHILD.EXE
>
>This situation fires an error.
>
>Nicola

Nicola,

Don't know, but have you tried
SET CLASSLIB TO MYTEXTBOX.VCX IN MAIN.EXE  ADDITIVE
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform