Having said that, if you provide &quot;main&quot; to a /subsytem:windows application, it will still work, but it will have an annoying console window pop up if you launch your app by double-clicking on it from Windows Explorer.<br>
<br><br><div class="gmail_quote">On Fri, Apr 11, 2008 at 6:37 AM, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
WIN32 in ADD_EXECUTABLE == /subsystem:windows<br>lack of WIN32 == /subsystem:console<br><br>It&#39;s up to you to provide &quot;WinMain&quot; if you specify WIN32 and to provide &quot;main&quot; otherwise...<div><div></div>
<div class="Wj3C7c"><br><br><br><div class="gmail_quote">
On Fri, Apr 11, 2008 at 5:03 AM, Alin M Elena &lt;<a href="mailto:alin.elena@qub.ac.uk" target="_blank">alin.elena@qub.ac.uk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
<br>
I think that I am a little confused about what WIN32 option does in fact.<br>
<br>
Is WIN32 supposed to transform main() in a WinMain() entry point (transform<br>
a /subsystem:console -&gt; /subsystem:windows)?<br>
Or<br>
WIN32 tells compiler: do not downgrade a WinMain to a main()?<br>
<br>
<br>
<br>
Alin<br>
<br>
<br>
&nbsp; ____________________________________________________________________<br>
&nbsp; &quot;...if the universities will not study useless subjects, who will?&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;G. F. Fitzgerald, Nature, 45/46, 392 (1892)<br>
&nbsp; ______________________________________________________________________<br>
&nbsp; Mr. Alin M. ELENA<br>
&nbsp; Atomistic Simulation Centre<br>
&nbsp; School of Mathematics and Physics<br>
&nbsp; Queen&#39;s University Belfast<br>
&nbsp; Office: +44 (0)28 9097 1428<br>
&nbsp; Fax: +44 (0)28 9097 5359<br>
&nbsp; <a href="http://titus.phy.qub.ac.uk/group/Alin/" target="_blank">http://titus.phy.qub.ac.uk/group/Alin/</a><br>
&nbsp; <a href="mailto:alin.elena@yahoo.co.uk" target="_blank">alin.elena@yahoo.co.uk</a><br>
&nbsp; <a href="mailto:alin.elena@qub.ac.uk" target="_blank">alin.elena@qub.ac.uk</a><br>
&nbsp; ______________________________________________________________________<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></blockquote></div><br>
</div></div></blockquote></div><br>