slugg
Diamond Member
Here's my typedef:
typedef int (*MouseCallback)(const Position &);
Line that I get the error:
windowList.back()->SetMouseClickCallback(graphicsList.back()->mouseClick);
The error:
: error C2664: 'SetMouseClickCallback' : cannot convert parameter 1 from 'int (const class Position &)' to 'int (__cdecl *)(const class Position &)'
None of the functions with this name in scope match the target type
^^ What? LOL! I really don't understand what that error means. Anyone have any idea?
Thanks for looking 🙂
typedef int (*MouseCallback)(const Position &);
Line that I get the error:
windowList.back()->SetMouseClickCallback(graphicsList.back()->mouseClick);
The error:
: error C2664: 'SetMouseClickCallback' : cannot convert parameter 1 from 'int (const class Position &)' to 'int (__cdecl *)(const class Position &)'
None of the functions with this name in scope match the target type
^^ What? LOL! I really don't understand what that error means. Anyone have any idea?
Thanks for looking 🙂