Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Safely share a variable between com-objects
At last weeks devcon, I attended Nick Neklioudov's excellent session on building visual interfaces to COM objects, and I've been experimenting a bit on my own at home with this. However, there is one thing that I cannot get to work: How can I safely share a reference between several com objects residing on a server to another com object residing on the same server? I tried just using a public variable, and although I can access it from all of the objects, when I try to make further use of it, I get an OLE error saying something not very helpful like "Something went seriously wrong" (not exact, translated from Norwegian).
Thank you in advance for any help.
Eyvind
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement