Archived

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

sdrichardson

DirectPlay Message Handler Problem

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