Skip to main content
gamedev.net
🔒 Locked

Problem with DPlay

Started by Lazy303 Jun 2, 2002 at 5:39 PM 0 replies 200+ views
Original Post
Lazy303
Lazy303
hi! I just can''t get GetClientInfo() to work! it allways returns some unknown error. When i join the server i do this from the client ZeroMemory( &dpPlayerInfo, sizeof(DPN_PLAYER_INFO) ); dpPlayerInfo.dwSize = sizeof(DPN_PLAYER_INFO); dpPlayerInfo.dwInfoFlags = DPNINFO_NAME; dpPlayerInfo.pwszName = wszClientName; dpPlayerInfo.dwDataSize=0; dpPlayerInfo.pvData=NULL; if( FAILED( hr = m_pDPClient->SetClientInf(&dpPlayerInfo, NULL, NULL, DPNSETCLIENTINFO_SYNC ) ) ) { return E_FAIL; } and then from the server i do DWORD dwSize=sizeof(DPN_PLAYER_INFO); DWORD dwFlags=DPNINFO_NAME; DPN_PLAYER_INFO pi; pi.dwSize=sizeof(DPN_PLAYER_INFO); pi.dwDataSize=0; pi.dwInfoFlags=DPNPLAYER_LOCAL; HRESULT hr=m_pDPServer->GetClientInfo(dpnid,π,&dwSize,dwFlags); Maybe I can''t call GetClientInfo from the DP thread? hmm... Anyone got a clue?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.