Re: Suppressing command window



Sai Korada writes:
I'm developing an application with GTK+ and created a batch file to set
the path, launch the application with command line arguments.

... presumably on Windows?

Even after launching the application the command window still
appears, which is by default. My requirement is, once the
application is launched, is there a way to suppress the command
window.

The correct term is console window.

Link the executable with the flag -mwindows (if using the GNU linker)
or /subsystem:windows (if using the Microsoft linker).

If you use the Microsoft linker this also means, I think, your app
should have a WinMain() instead of main().

(This is nothing GTK+-specific, but basic Windows programming stuff.)

--tml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]