You need another Class Factory. Use the DECLARE_CLASSFACTORY_SINGLETON macro. In this case all COM-clients get the same instance. In this case your COM-Object must be threadsafe ! Greetings
H
Hubert Mayer
@Hubert Mayer
Posts
-
COM event firing to multiple targets -
DCOM Server questionHey, i always register my dll in com+ as application. Than you can export this application in a msi file. You can deploy for clientside and serverside. The security thing is a try and error. Good luck ;-)
-
Difference between .idl and .h file?The idl-File is the input for the midl-compiler which creates an _i.c and .h file for further use. See MIDL-Compiler for more information. For creation of an idl-file use the ATLCOM-wizard in the VS.
-
Application crashes when CoCreateInstance is called in VS 2005 in Vista machineWhat is the HRESULT ? Check additionally with the "dependency walker" whether all dependent dlls are available
-
Using COM in a scenario.I would say yes, store the COM-Objects with IUnknown- or your BASE-Interface and query for the disired Interface.