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:

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

Uhm… this ain’t the right forum
Try the opengl developer forums to get some help… this forum is only for END USERS… not programmers.