[Qt-interest] stdout of MSWin GUI application run from console

Scott Aron Bloom Scott.Bloom at onshorecs.com
Thu Apr 14 17:01:05 CEST 2011



-----Original Message-----
From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com
[mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On
Behalf Of Paul Miller
Sent: Thursday, April 14, 2011 7:33 AM
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] stdout of MSWin GUI application run from
console

On 4/14/2011 9:22 AM, Michael Jackson wrote:
> I am probably going to miss the subtle difference here but can't you 
> just set the "SUBSYSTEM" to "CONSOLE" instead of "WINDOWS" in the 
> Visual Studio Project? This makes the GUI app also pop up an console 
> window when launched although it is a separate console window so maybe
the is the difference.

The difference with the console subsystem approach is you can't control
if the console appears. With Graeme's approach at least you could
control (with a command-line switch) whether the console appears or not.

_______________________________________________

Nope.. his was will NOT pop up the console.. It will only attach to it
if it already exists.. If it doesn't (run via double click or from the
dev studio debugger) the attach function fails.

Scott
 




More information about the Qt-interest-old mailing list