Original Post
Ok, i have this problem - I'm trying to initialize DirectPlay client, and CoCreateInstance fails. It works excellent in the example from which I am learning, and which I am compiling, but it won't work in my project. Anybody has any idea? This is the code: BOOL InitDP() { // Create DirectPlay Client component if(FAILED(CoCreateInstance( CLSID_DirectPlay8Client, NULL, CLSCTX_INPROC_SERVER,IID_IDirectPlay8Client,(void**) &g_pDPClient))) { std::cerr << "InitDP failed\n"; return FALSE; } // Assign a message handler to network component if(FAILED(g_pDPClient->Initialize(NULL, NetMsgHandler, 0))) return FALSE; return TRUE; } Please help, regards.