General information
Category:
Coding, syntax & commands
Title:
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 !!!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only