Jump to content
  • Advertisement


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


DirectPlay Message Handler Problem

This topic is 5204 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've been having problems with the directplay message handler for a few days now and its getting to the ripping out hair point. I can't seem to change any global values from within the message handler. the error i get is: Chess3D v0.1 error LNK2005: "bool NetworkMoveMade" (?NetworkMoveMade@@3_NA) already defined in DirectPlay.obj could anyone show me how to do this? Scotty. [edited by - sdrichardson on April 22, 2004 1:15:29 PM]

Share this post

Link to post
Share on other sites
I already got this error when i was starting my game. i believe the error occurr when u use the wrong sequence of includes in you program. Try to change the order or something like it. I really dont know why DP need a correct order. Now im using this sequence:

//para poder usar a funcao CoInitializeEx
#define _WIN32_DCOM

//para poder usar os ids pre-definidos
#define INITGUID

#include "dplay8.h"
#include <windows.h>
#include <commctrl.h>
#include <assert.h>
#include "dxutil.h"

Hope that it helps.

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!