Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Addobject and build as a DLL
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement