Hi! I have created an MFC Multiple Dialog Interface project and I want to incorporate OpenGl, by creating an OGL Window that coexists with others. I am using GLUT and I was trying to make a simple program until the following error ocurred:
" cannot convert parameter 1 from ‘void (void)’ to ‘void (__cdecl *)(void)’"
The error was on the following statement:
glutDisplayFunc(display);
display was declared as:
" void CChildFrame::display(void) "
How can I make this work? I tried direct conversion but it doesn’t work.
Can anyone help me?
Thanks a lot in advance. Cell