No subject


Mon Dec 15 09:51:36 EST 2008


if(WIN32)
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
RELWITHDEBINFO "/SUBSYSTEM:CONSOLE")
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
MINSIZEREL "/SUBSYSTEM:WINDOWS")
endif(WIN32)


--=20
John M. Drescher
=0A=0A=0A      
--0-893666272-1239053689=:7266
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;"><DIV>Hi John,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I modified CMakeList.txt file in qtevents folder with the following en=
try:</DIV>
<DIV>&nbsp;SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem=
:windows"), ran CMake and generated a new VS2008 Solution file. However, my=
 project properties did not reflect this change.&nbsp;My linker properties&=
nbsp;still show /subsystem:console. </DIV>
<DIV>&nbsp;</DIV>
<DIV>The good news is that the console&nbsp;didnot pop up after manually&nb=
sp;setting:</DIV>
<DIV>SubSystem=3D&nbsp;Windows (/SUBSYSTEM:WINDOWS)</DIV>
<DIV>in VS 2008.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you.</DIV>
<DIV><BR><BR><BR>--- On <B>Mon, 4/6/09, John Drescher <I>&lt;drescherjm at gma=
il.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(=
16,16,255) 2px solid"><BR>From: John Drescher &lt;drescherjm at gmail.com&gt;<=
BR>Subject: Re: [vtkusers] How to hide the console for a VTK/Qt app<BR>To: =
"Jim" &lt;jiksed at yahoo.com&gt;, "VTK" &lt;vtkusers at vtk.org&gt;, "Cmake Mail=
ing List" &lt;cmake at cmake.org&gt;<BR>Date: Monday, April 6, 2009, 3:15 PM<B=
R><BR>
<DIV class=3DplainMail>On Mon, Apr 6, 2009 at 5:06 PM, John Drescher &lt;<A=
 href=3D"http://us.mc320.mail.yahoo.com/mc/compose?to=3Ddrescherjm@gmail.co=
m" ymailto=3D"mailto:drescherjm at gmail.com">drescherjm at gmail.com</A>&gt; wro=
te:<BR>&gt; On Mon, Apr 6, 2009 at 4:59 PM, Jim &lt;<A href=3D"http://us.mc=
320.mail.yahoo.com/mc/compose?to=3Djiksed at yahoo.com" ymailto=3D"mailto:jiks=
ed at yahoo.com">jiksed at yahoo.com</A>&gt; wrote:<BR>&gt;&gt;<BR>&gt;&gt; Dear =
vtkusers,<BR>&gt;&gt;<BR>&gt;&gt; While executing VTK examples such as qtev=
ents, a black (debugging) console<BR>&gt;&gt; like Windows Command Prompt p=
ops up. This doesn't look nice if my customers<BR>&gt;&gt; see it. How can =
I hide this console?<BR>&gt;&gt;<BR>&gt;&gt; #SET(CMAKE_EXE_LINKER_FLAGS "$=
{CMAKE_EXE_LINKER_FLAGS} /subsystem:windows")<BR>&gt;&gt;<BR>&gt; Bing a wi=
ndows developer for 15 years I know this should be the<BR>&gt; working one.=
 Check your linker settings in your Visual Studio project<BR>&gt; file and =
make
 sure that it does say /subsystem:windows<BR>&gt;<BR>&gt; The default in cm=
ake I believe is /subsystem:console which I know<BR>&gt; starts a new conso=
le. I remember that I used that option years ago to<BR>&gt; add debug conso=
le to all my GUI apps. :)<BR>&gt;<BR>From the cmake mailing list, I found t=
his:<BR><BR>if(WIN32)<BR>&nbsp; &nbsp; set_target_properties(WindowApplicat=
ionExample PROPERTIES<BR>LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")<BR>&nbsp; &=
nbsp; set_target_properties(WindowApplicationExample PROPERTIES<BR>RELWITHD=
EBINFO "/SUBSYSTEM:CONSOLE")<BR>&nbsp; &nbsp; set_target_properties(WindowA=
pplicationExample PROPERTIES<BR>LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")<BR=
>&nbsp; &nbsp; set_target_properties(WindowApplicationExample PROPERTIES<BR=
>MINSIZEREL "/SUBSYSTEM:WINDOWS")<BR>endif(WIN32)<BR><BR><BR>-- <BR>John M.=
 Drescher<BR></DIV></BLOCKQUOTE></td></tr></table><br>=0A=0A=0A=0A      
--0-893666272-1239053689=:7266--


More information about the vtkusers mailing list