glutInit() in MFC applicatons

Hello all,

I’m new to openGL and am trying to run a simple openGL program in an MFC application. The openGL program works when using glutInit(&argc, argv). However, I’m unclear on how to use glutInit in a MFC environment where &argc and argv are not supported. Any help would be appreciated. Thanks.

MFC and GLUT dont mix so well since they are both event handling frameworks. Use either MFC or GLUT but safe yourself from the headache of mixing them.