Cannot resolve overloaded function
I'm getting the following error:
Code:
cannot resolve overloaded function `CtrlProc' based on conversion to type `long int'
My problem is that, as far as I know my function CtrlProc isn't overloaded to my understanding of it.
Code:
class MCCBase{
public:
EnableSubClass(BOOL cmd,BOOL create,BOOL size,BOOL move,BOOL draw,BOOL paint);
LRESULT CALLBACK CtrlProc(HWND,UINT,WPARAM,LPARAM);
...
Code:
void MCCBase::EnableSubClass(BOOL cmd,BOOL create,BOOL size,BOOL move,BOOL draw,BOOL paint)
{
if(cmd == TRUE) SetWindowLong(ctrl,GWL_WNDPROC,CtrlProc);
}
I see no reason why it is happening.