GLUT with MFC is possible or not

is that for GLUT programming void main(arg…) or int main(argc…)is necessary.

I want to open a GLUT window when clicked on a MenuItem of a Dialog Based Interface’s Menu.

What code has to be written in OnClickButton() function to open a Glut Window …
or is it that it is not possible

If u familiar with MFC. In MFC u can add a mouse function. Then MFc also create a window for u… so u don’t need to call void main().The main() in glut just help us to create a window.

if u want to use glut function, u can use
glutSolidCube(1);

MFC & GLUT dont mix well…