Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 6191 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi People! I''m working right now the first time with DirectPlay. I''ve bought a book last week: "Multiplayer Game programming". Its a good book. Ok..now i tried to make a simple Serverinitialisation. Not more. Only initialisating a Server. And my pro gives me an error on this: ////////////// DXUtil_ConvertGenericStringToWide( wszServerName,"GAME Server"); ZeroMemory( &dpPlayerInfo, sizeof(DPN_PLAYER_INFO)); dpPlayerInfo.dwSize = sizeof(DPN_PLAYER_INFO); dpPlayerInfo.dwInfoFlags= DPNINFO_NAME; dpPlayerInfo.pwszName = wszServerName; if(FAILED( hReturn = g_pDPServer->SetServerInfo( &dpPlayerInfo, NULL, NULL, DPNSETSERVERINFO_SYNC))){ chrigiFile << "SET SERVER INFO FAILED!" << endl; return 0; } //////////// chrigiFile is my "logfile" where I write what happens in game. The SetServerInfo returns an error. Have I everything forget for the SetServerInfo?? That''s all the code belonging the SetServerinfo. Hope to see answers: ) C.Ruiz

Share this post

Link to post
Share on other sites
try adding to the structure definition before the SetServerInfo call:

dpPlayerInfo.dwPlayerFlags = 0;

The docs recommend to do this with a DP8Server object..

Share this post

Link to post
Share on other sites
It works now!
Yes the flag!
But now it works!!
Thansk thanks thanks!
Greets to all out there:

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!