Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddProperty in DLL's
Message
De
18/10/1999 13:15:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00277666
Message ID:
00277743
Vues:
28
>>>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform