OpenGL, MFC and GLUT

Hello,
I am another fresher in OpenGL and going through the starting troubles on setting up OpenGl with MFC. Is it possible to integrate OpenGl applications with MFC and use GLUT.
How is it done. Thanks

It’s possible, but kind of ugly. You will only be able to use Glut OR MFC for your windowing functions. I’m not quite sure why you’d need both. If you want to use Glut for the windowing and just want MFC for stuff like CString, look at how the Appwizard sets up a console project with MFC support. If you want to use MFC for the windowing and Glut for stuff like glutSolidSphere, then create the MFC window to be initialized with OpenGL, and the glutSolidSphere, etc. should work. You cannot do something like create a window with MFC and use glut callback functions. Likewise, you cannot use glut to create the window and use MFC message handling.