> ... a GUI (-mwindows) application ..
Using -mwindows doesn't make your application into a GUI application.
It just means that your application doesn't have a console automatically
attached to the process. A GUI application is one that runs a message
loop and displays some sort of window, and a GUI application can be
compiled with either -mconsole or -mwindows.
>Well, duh. I meant "GUI" in the subsystem sense as displayed by
>objdump -p or link -dump -headers.
Then why did you suggest someone use -mwindows when -mconsole does
exactly what they want? What do you think would be the advantage of
using -mwindows instead?
From: Jeffrey Williams <jwilliams@mf...> - 2006-02-20 15:44:26
> From: Tor Lillqvist <tml@...>
> Date: Fri, 17 Feb 2006 21:41:39 +0200
> To: mingw-users@...
> Subject: [Mingw-users] Consoles and -mwindows
> Reply-To: mingw-users@...
> > But I cannot figure out how to have the program using the existing
> > console window when it is launched by command line, it always creates a
> > new
> > console.
> AttachConsole(ATTACH_PARENT_PROCESS) looks like it might help. I
> haven't tried it myself, though. It is available on XP and newer only.
Thanks, this more or less does what I want.
From: Tor Lillqvist <tml@ik...> - 2006-02-18 02:53:10
> > ... a GUI (-mwindows) application ..
> Using -mwindows doesn't make your application into a GUI
Well, duh. I meant "GUI" in the subsystem sense as displayed by
objdump -p or link -dump -headers.