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.Code:cannot resolve overloaded function `CtrlProc' based on conversion to type `long int'
Code:class MCCBase{ public: 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.Code:void MCCBase::EnableSubClass(BOOL cmd,BOOL create,BOOL size,BOOL move,BOOL draw,BOOL paint) { if(cmd == TRUE) SetWindowLong(ctrl,GWL_WNDPROC,CtrlProc); }



LinkBack URL
About LinkBacks


