Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding properties to com objects at runtime
Message
 
 
To
28/12/2004 18:16:49
Darren Woodford
Woodford Computer Systems Ltd
Rhyl, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00972743
Message ID:
00972758
Views:
10
This message has been marked as the solution to the initial question of the thread.
Darren,

The COM interface is defined at compile time in the type library. Any property added at runtime will not be visible to the client application. Check Re: Multithreaded dll problem Message #827523 for a workaround.

>I seem to having a problem adding properties to COM objects at runtime.
>I have a OLEPUBLIC Class (TClass1) that instantiates another class (TClass2). It then adds a new property to this object. However this new property is not visible to the calling program. I have enclosed some sample code below. Could you enlighten me please?
>
>To run the samples code you will have to add the COM Object code to a project names proj1 and build it into a COM DLL.
>
<snip>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform