IDirectPlay8Peer::Initialize problem

Started by
-1 comments, last by Ejaz 20 years, 11 months ago
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.

This topic is closed to new replies.

Advertisement