N
Nick Wilton
Hi guys,
Hope someone here can help. I am performing something almost identical to
the sample shown here, except my .NET server class has a private constructor
and a shared factory method to create an instance of itself.
http://msdn.microsoft.com/library/d...l/cpconcominteropsamplecomclientnetserver.asp
Unfortunately the following lines of code, do not return an interface to my
COM client:
HRESULT hr = CoInitialize(NULL);
IClassPtr pIClass(__uuidof(Class));
What do I need to do in C++/COM in order to get around this problem.
Changing the design of my .NET class is not an option for me.
Thanks in advance,
Hope someone here can help. I am performing something almost identical to
the sample shown here, except my .NET server class has a private constructor
and a shared factory method to create an instance of itself.
http://msdn.microsoft.com/library/d...l/cpconcominteropsamplecomclientnetserver.asp
Unfortunately the following lines of code, do not return an interface to my
COM client:
HRESULT hr = CoInitialize(NULL);
IClassPtr pIClass(__uuidof(Class));
What do I need to do in C++/COM in order to get around this problem.
Changing the design of my .NET class is not an option for me.
Thanks in advance,