General information
Category:
COM/DCOM and OLE Automation
>>>Any added property would only be available during the session that called the AddProperty
>>
>>Yes, I understand this. But they aren't available in CURRENT session outside the DLL
>>
>>For example :
>>.....
>I believe this is by design. The AddProperty would only be available during the method call that called it.
Well, you don't believe me :-))) Try the simple test
1) Create in VFP DLL dlltest with 1 object - testdll
2) Add method test
Lpara what
return pemstatus(This,what,5)
3)Build DLL
4) In Command Window
oTest=CreateObject("dlltest.testdll")
oTest.AddProperty("NewProperty")
*** New property added, but we can't get it!
oTest.NewProperty="!!!!!" && error
*** But we may sure that Newproperty exist!
oTest.Test("NewProperty") && retu .T.
Any comments?
Previous
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