Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddProperty in DLL's
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00277666
Message ID:
00277779
Views:
23
>>I'm creating a DLL to use it in Visual Basic. For some purpose I need a dynamic properties. I tried to create them with AddProperty. But when this properties are created, they are accessable only inside DLL. VB says "Property or metod doesn't exist" or something like this.
>>Any ideas?
>
>Dmitry-
>
>in COM objects, the client program knows about the server's PEMs only through the class definition built when the class is compiled. When you instanciate a COM object in VFP (and most other client programs), VFP searches the available interfaces by calling the QueryInterface method of the IUNKNOWN interface of the server. IUNKNOWN only knows how to query the original interface (the stuff stored in the tlb of the server).
>
>In short, you can't do what you are trying to do without some heavy duty COM manipulation with API functions.
>
>The properties you add will be available inside the the server, but not exposed to the client, because the interface will not be updated.

Erik,

One of the reasons mentioned in the KB article, was that properties added in this method would never show up in a type library.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform