Having said that, if you provide "main" 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 <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> 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's up to you to provide "WinMain" if you specify WIN32 and to provide "main" 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 <<a href="mailto:alin.elena@qub.ac.uk" target="_blank">alin.elena@qub.ac.uk</a>> 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 -> /subsystem:windows)?<br>
Or<br>
WIN32 tells compiler: do not downgrade a WinMain to a main()?<br>
<br>
<br>
<br>
Alin<br>
<br>
<br>
____________________________________________________________________<br>
"...if the universities will not study useless subjects, who will?"<br>
G. F. Fitzgerald, Nature, 45/46, 392 (1892)<br>
______________________________________________________________________<br>
Mr. Alin M. ELENA<br>
Atomistic Simulation Centre<br>
School of Mathematics and Physics<br>
Queen's University Belfast<br>
Office: +44 (0)28 9097 1428<br>
Fax: +44 (0)28 9097 5359<br>
<a href="http://titus.phy.qub.ac.uk/group/Alin/" target="_blank">http://titus.phy.qub.ac.uk/group/Alin/</a><br>
<a href="mailto:alin.elena@yahoo.co.uk" target="_blank">alin.elena@yahoo.co.uk</a><br>
<a href="mailto:alin.elena@qub.ac.uk" target="_blank">alin.elena@qub.ac.uk</a><br>
______________________________________________________________________<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>