PDA

View Full Version : glut mouse declaration



SED
05-06-2000, 10:05 AM
Im having trouble getting my mouse handler working.

declaration:
void MouseClick(int button, int state, int x, int y);

function: (exactally the same)
void MouseClick(int button, int state, int x, int y)
{
}

give glut the function:
glutMouseFunc(MouseClick);


I get an error during compiling:
cannot convert parameter 1 from 'void (int,int,int,int)' to 'void (__cdecl *)(int,int,int,int)' None of the functions with this name in scope match the target type


All the examples Ive found are in C, not C++ or specifically MFC.

SED
05-06-2000, 04:27 PM
Nevermind.
Screw the MFC. :P