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--