Jump to content
  • Advertisement


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


IDirectPlay8Peer::Initialize problem

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

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!