about codeblock of FreeConsole () AllocConsole () .....

I want to use button control console open and close. .

But the codeblock the ide is not responding. . Can anyone tell me why?

http://msdn.microsoft.com/en-us/library/ms683150(v=vs.85

hi yty

I’m not sure what you mean by ‘button control console open and close’

You may need to implement a windows message loop to make this work, and it may not be possible using GLUT.

Sorry!