...
Is there a way to hide the win32 console window?
(Ex. When the program opens, the console doesn't show up but still runs in the background.)
...
Is there a way to hide the win32 console window?
(Ex. When the program opens, the console doesn't show up but still runs in the background.)
If you want to hide it while it performs a particular task you could
do something like this example:
Code:int main(int argc, char* argv[]) { static const char szTitle[] = "Generate a GUID Here"; ::SetConsoleTitle( szTitle ); Sleep( 2000 ); HWND hWnd = NULL; while (NULL == hWnd) { hWnd = ::FindWindow( NULL, szTitle ); } ShowWindow( hWnd, SW_HIDE ); Sleep( 2000); ShowWindow( hWnd, SW_SHOWNA ); Sleep( 2000 ); return 0; }
Or maybe create/compiler it as a GUI app instead of a console based one.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Could you please explain what you are doing in that code ? I'm not familiar with handles...