Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addobject and build as a DLL
Message
From
08/11/2000 17:02:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Addobject and build as a DLL
Miscellaneous
Thread ID:
00439424
Message ID:
00439424
Views:
58
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
Map
View

Click here to load this message in the networking platform