• Advertisement


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

IDirectPlay8Peer::Initialize problem

This topic is 5409 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 All, I''m trying to convert the tutorial in MSDN into object oriented shape. I''ve created a class NetConnect, which is responsible for the communication b/w the peers. The problem is, when I call the IDirectPlay8Peer::Initialize method in my class member function, it gives the following error. error C2664: ''Initialize'' : cannot convert parameter 2 from ''long (void *,unsigned long,void *)'' to ''long (__stdcall *const )(void *,unsigned long,void *)'' but it works fine, in the tutorial. Any ideas, where is the problem, or what is the step I''m doing not right. Anyhelp in this matter will be higly appriciated & thanx in advance. Regards, Ejaz.

Share this post

Link to post
Share on other sites

  • Advertisement