I have an app that opens the console and then it opens the GUI, but the console does not disappear.
Is there any way of hiding the console window?
Thanks
I have an app that opens the console and then it opens the GUI, but the console does not disappear.
Is there any way of hiding the console window?
Thanks
#include <windows.h>
int main(void) {
printf("%s", "Hello from the console.\n");
MessageBox(NULL, "Click OK to hide the console.", "", MB_ICONINFORMATION);
ShowWindow(GetConsoleWindow(), SW_HIDE);
MessageBox(NULL, "Console is now hidden.", "", MB_ICONINFORMATION);
return 0;
}