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