Information générale
Catégorie:
COM/DCOM et OLE Automation
You can't directly access the memory variable of the host. You need to pass the variables content to the COM or encapsulate them in a class and pass a reference to the instance of that class to the COM.
HTH
>I have a situation in which an exe is running, and then I create a COM object by instantiating an OlePublic class within this exe. What I would like to do, is to have the COM object have access to the global application object goApp in tjhe already running exe, as it contains info about which user is logged in etc. Is this possible?`
Précédent
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