When I add WIN32, as you wrote<br><br>ADD_EXECUTABLE( Application WIN32 ${SRCS} ${UI_SRCS} ${RCC_SRCS})<br><br>then when I compile solution I get<br><br>Error    1    error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup    MSVCRT.lib    Application<br>
Error    2    fatal error LNK1120: 1 unresolved externals    C:\DP-ITK-APPS\src\my_test\bin\Release\Application.exe    Application<br><br>I have set window subsystem acording this<br><a href="http://bobobobo.wordpress.com/2008/01/29/error-lnk2019-error1error-lnk2019-unresolved-external-symbol-_main-referenced-in-function-___tmaincrtstartupmsvcrtdlib/">http://bobobobo.wordpress.com/2008/01/29/error-lnk2019-error1error-lnk2019-unresolved-external-symbol-_main-referenced-in-function-___tmaincrtstartupmsvcrtdlib/</a><br>
<br>(I think, that new solution is hasnt to be created?)<br><br><br><br><div class="gmail_quote">2011/4/27 G G <span dir="ltr">&lt;<a href="mailto:greenlander1986@gmail.com">greenlander1986@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thank you, I tried it ;)<div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/4/27 Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In your add_executable call in your cmakelists.txt file you need to to<br>
set the GUI type to win32. Look at the documentation for cmake to get<br>
an idea of what you should write.<br>
<br>
Mike Jackson<br>
<a href="http://Www.bluequartz.net" target="_blank">Www.bluequartz.net</a><br>
<div><div></div><div><br>
On Wednesday, April 27, 2011, G G &lt;<a href="mailto:greenlander1986@gmail.com" target="_blank">greenlander1986@gmail.com</a>&gt; wrote:<br>
&gt; I have tried it, but I ran console window again :(<br>
&gt;<br>
&gt; 2011/4/27 G G &lt;<a href="mailto:greenlander1986@gmail.com" target="_blank">greenlander1986@gmail.com</a>&gt;<br>
&gt;<br>
&gt; Thank you very much, I will try it :)<br>
&gt; Do you know some article about it? I wrote some thesis and it would be nice, if I have some reference for it...<br>
&gt;<br>
&gt; 2011/4/27 Lodron, Gerald &lt;<a href="mailto:Gerald.Lodron@joanneum.at" target="_blank">Gerald.Lodron@joanneum.at</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Qt runs only in console mode, if you want to hide console<br>
&gt; you can write a bat file which starts the exe like this:<br>
&gt;<br>
&gt; start MyPropgram.exe<br>
&gt;<br>
&gt; Then the program does not wait for the return value of the<br>
&gt; MyProgram.exe console<br>
&gt; best regards<br>
&gt;<br>
&gt;<br>
&gt; Von: <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a><br>
&gt; [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] Im Auftrag von G G<br>
&gt; Gesendet:<br>
&gt; Mittwoch, 27. April 2011 12:57<br>
&gt; An: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Betreff:<br>
&gt; [vtkusers] QT + VKT + ITK + VS2008<br>
&gt;<br>
&gt;<br>
&gt; Hi I have some project with QT+VTK+ITK and I compile it in Visual<br>
&gt; Studio 2008. I create solution with CMake. It works fine. But I compile it and<br>
&gt; run. When I run it, I have GUI window and console window. So I have question.<br>
&gt; How to disable console window?<br>
&gt;<br>
&gt; I think, that it is because of CMake, but<br>
&gt; I dont know very well.<br>
&gt; I tried to used this<br>
&gt; <a href="http://www.qtforum.org/article/18473/tutorial-for-using-qt-with-vtk.html" target="_blank">http://www.qtforum.org/article/18473/tutorial-for-using-qt-with-vtk.html</a><br>
&gt; But<br>
&gt; when I tried to compile it, it gave me many errors...<br>
&gt; Do you know some<br>
&gt; complete progress, how to compile it?<br>
&gt; Or how to disable console<br>
&gt; window?<br>
&gt;<br>
&gt; I dont have console window because of it get me qWarning<br>
&gt;<br>
&gt;<br>
&gt; QObject::killTimers: timers cannot be stopped from another<br>
&gt; thread<br>
&gt;<br>
&gt; when I exit application from console window.<br>
&gt; When I exit<br>
&gt; application from GUI console window freeze :(<br>
&gt;<br>
&gt; Thank you all for<br>
&gt; help<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer                  Dayton, Ohio<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>