Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CoCreateInstance from a DLL for DCOM server

13 views
Skip to first unread message

varsha....@gmail.com

unread,
Oct 13, 2005, 11:33:59 AM10/13/05
to
New to DCOM.
I have a DCOM server which runs as a service (local server).
I have a DLL which talks to this DCOM server and exposes various
functions that are used by other applications.
Applications call initialize function then the other functions and
finally uninitialize.
In this DLL i have a global variable g_IInterface.
g_IInterface is set to interface pointer by calling CoCreateInstance in
call to initialize function.
g_IInterface is set to NULL in uninitialize function of the DLL.

What will happen when many applications load this DLL ??
Will CoCreateInstance get called for every process??
Should CoCreateInstance be called for every thread?

Thanks,
VJ

0 new messages