Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding properties to com objects at runtime
Message
 
 
À
28/12/2004 18:16:49
Darren Woodford
Woodford Computer Systems Ltd
Rhyl, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00972743
Message ID:
00972758
Vues:
11
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform