Hello! :)
Please, help me.
How can I hide the console in the GLUT-project?
OS: Windows
//int main (int argc, char **argv)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
{
glutInit(&__argc, __argv);
Thank you!
But this is true for Win32 project. I am interested in Console-project :)
I read this advice in the RED Book:
...
int main (int argc, char **argv)
{
char* argv = "";
int argc = 0;
glutInit(&argc, &argv);
...
}
But this method is not working...
This code hide console window at runtime, but user see a flash of it at startup.
ShowWindow(GetConsoleWindow(),0);
Thank you very much!