PPT Slide
// Helper function - Creates the DirectPlay object
static HRESULT CreateDirectPlayInterface()
// Retrieve a DirectPlay 1.0 interface.
hr = DirectPlayCreate(lpServiceProviderGuid, &lpDirectPlay1, NULL);
lpDirectPlay1->Release();
::MessageBox(NULL,"DirectPlayCreate Failed", "HelloWorld", MB_OK);
delete lpServiceProviderGuid;
CreateDirectPlayInterface():
Actually creates the DirectPlay object
Once we create the DirectPlay
object, we no longer need the