Original Post
I am just beginning to experiment with DirectPlay, and I am trying to create a server. Most of my programs use an engine object that controls all of the other objects, and this method has seemed to work with all of the other parts of DirectX. Now my current problem is is that when you initalize DPlay, I need to specify the name of a message loop for it. I have been cutting code out of one of the examples, and I have the line of code:
g_pDPServer->Initialize(NULL, DirectPlayMessageHandler, 0 )and this is in my engine object. When I try to compile, it tells me that: ...\MMOserver\engine.cpp(71) : error C2664: ''Initialize'' : cannot convert parameter 2 from ''long (void *,unsigned long,void *)'' to ''long (__stdcall *const )(void *,unsigned long,void *)'' None of the functions with this name in scope match the target type Now, with what I know about programming, it is basiclly telling me that it really doesn''t like being in an object. If someone could tell me how to make this work, I would be very appreciative. (because if I can get it to work, then I can add it to my little library of wrapper classes for DirectX...) (note: I posted this on the beginners forum, and didn''t seem to generate much of a response...) ___________________ ~Analazon