Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Addobject and build as a DLL
Message
De
08/11/2000 17:02:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Addobject and build as a DLL
Divers
Thread ID:
00439424
Message ID:
00439424
Vues:
59
I got an interresting issue here :)

define myclass as form olepublic
procedure init
this.addobject("Mytest","custom")
return
enddefine

I build the above as a DLL (TEST.DLL)

In theory when I instantiate the TEST.DLL the property MYTEST should exist. However, it not entirely true, because when you tries to access it, it is not public to all. Now let me put it in VFP code

ox = crea("test.myclass")
?ox.mytest.name

Note: here I got a message on the second line
OLE ERROR CODE 0X800000 Unknown name

ox.addobejct("mytest","custom")

NOTE: Now The error message say
OLE IDispatch exception code 771 from Visual FoxPro for Windows: A member object with this name already exists...


Now, what does it mean ??????

It seem to me like the property MYTEST exist but is somewhat hidden when created by the ADDOBJECT function

Need suggestion of some thoughts?????

HELP !!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform