DCOM with Visual C++
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
If I have the following code on VB: Dim myObj as Object Set myObj = CreateObject("MyDCOMServer.MyClass", "ServerName") How do I do it on Visual C++? Thanks a lot, Julian
Use this. HRESULT CoCreateInstanceEx( REFCLSID rclsid, //CLSID of the object to be created IUnknown *punkOuter, //the controlling IUnknown DWORD dwClsCtx, //CLSCTX values COSERVERINFO *pServerInfo,//Machine on which the object is to be instantiated ULONG cmq, //Number of MULTI_QI structures in pResults MULTI_QI *pResults //Array of MULTI_QI structures ); Cheers, Anand ;)