K
Kevin Joplin
Hi,
i have the following problem with getting member function adress:
class CExmaple {
public:
CExample();
~CExample();
void SetEventDispatch( void (* func)(const in_event_t *) );
void EventDispatch( const in_event_t *event );
};
CExample::CExample()
{
SetEventDispatch( EventDispatch );
}
//here goes implementation of other CExample member functions, i wont
//place them here for clarity.
i get error here... beceuse of pointers:
c:\home\Krychu\projects\GameName\Input\CExample.cpp(30): error C2664:
'CExample::SetEventDispatch' : cannot convert parameter 1 from 'void
(const in_event_t *)' to 'void (__cdecl *)(const in_event_t *)'
(i'm using vc++ .net 2003)
could someone give me a hint how to solve this problem ?
regards
Kevin
i have the following problem with getting member function adress:
class CExmaple {
public:
CExample();
~CExample();
void SetEventDispatch( void (* func)(const in_event_t *) );
void EventDispatch( const in_event_t *event );
};
CExample::CExample()
{
SetEventDispatch( EventDispatch );
}
//here goes implementation of other CExample member functions, i wont
//place them here for clarity.
i get error here... beceuse of pointers:
c:\home\Krychu\projects\GameName\Input\CExample.cpp(30): error C2664:
'CExample::SetEventDispatch' : cannot convert parameter 1 from 'void
(const in_event_t *)' to 'void (__cdecl *)(const in_event_t *)'
(i'm using vc++ .net 2003)
could someone give me a hint how to solve this problem ?
regards
Kevin