I have sent this to the Beginner’s section but got no answer and here I am resending the message again.
I am trying to use glutMouseFunc from GLUT and have called it using glutMouseFunc(mouse_callback_func) where mouse_callback_func is the callback function. I don’t know where I’ve gone wrong as I have appropriately defined and declared mouse_callback_func in the header and source files. Below are the messages that I received from Borland C++ Builder 6.0. I’d truly appreciate if anyone could assist me with this matter. Thank you.
Kind regards,
Suf.
[C++ Error] MainForm1.cpp(53): E2034 Cannot convert ‘void (_fastcall * (_closure )(int,int,int,int))(int,int,int,int)’ to ‘void ()(int,int,int,int)’
[C++ Error] MainForm1.cpp(53): E2342 Type mismatch in parameter ‘func’ (wanted 'void ()(int,int,int,int)’, got ‘void’)
glut32.lib or something it’s called. I dont remember because I havent worked with it in a while. There may also be more than one library you need to link with.
Hopefully you know how to do this with Builder because I don’t! (I use VC++)