Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] Unwanted console window

Hello,

	I<ve noticed that when I produce an executable for Windows, whether I
use the  Windows PE parser or the Cygwin PE parser, the application
always opens a text-mode console window when it runs.

	Whether it is debug or release, running under the Eclipse environment
debugger or not.


An app such as this should NOT produce a console window:

int WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int
nShowCmd ) {

    MessageBox( HWND_DESKTOP, "Hello", "Hello", MB_OK );
	
    return 0;

}


But yet, it does. 

Is there a way to get rid of the console window?

Thanks in advance.




Back to the top