Jump to content
  • Advertisement

Archived

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

sdrichardson

DirectPlay MessageHandler

This topic is 5229 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

i''m having trouble manipulating values outside of the DirectPlay message handler. For example... HRESULT WINAPI DirectPlayMessageHandler( PVOID pvUserContext, DWORD dwMessageId, PVOID pMsgBuffer) { switch( dwMessageId ) { case DPN_MSGID_RECEIVE: { PDPNMSG_RECEIVE pMsg; TCHAR strBuffer[256]; pMsg = (PDPNMSG_RECEIVE) pMsgBuffer; DXUtil_ConvertWideStringToGenericCch( strBuffer, (WCHAR*) pMsg->pReceiveData, 256 ); DS(strBuffer); NetworkMoveMade = true; break; } } return S_OK; } throws up the error: ERROR: Chess3D v0.1 error LNK2005: "bool NetworkMoveMade" (?NetworkMoveMade@@3_NA) already defined in DirectPlay.obj can anyone help? Scotty.

Share this post


Link to post
Share on other sites
Advertisement
For clarification, this is more of a C/C++ question than it is a DirectX question. If you ever need some general help, try searching the General Programming forum.

Are there any other extern/global variables called NetworkMoveMade? Also, are you defining NetworkModeMade multiple times in the same source file, through includes or something?


Dustin Franklin
Mircrosoft DirectX MVP

Share this post


Link to post
Share on other sites
NetworkMoveMade is just a global variable that is declared in the same cpp file. Nothing else calls it and nothing else has the same name at this point.



Scotty.

[edited by - sdrichardson on April 21, 2004 8:18:30 AM]

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!