The other answer to that Stackoverflow question links to a Microsoft blog
explaining why there is no way to really achieve this. It does mention some
hackish workarounds, but it's probably best just to have two executables.
On 23 June 2015 at 08:18, Pimmetje <owncloud-mail...@p1m.nl> wrote:
> I am currently trying to do something that is not done much. I want to
> have one executable that is a console or a GUI application based on it's
> arguments.
>
> Currently it kind of works. But the GUI applications also gets a blank
> console window.
>
> This user claims to have a work around :
> http://stackoverflow.com/a/3237924/559333 but i have a feeling this is
> not working for the current version as i still get the console window
> output in my GUI application. So i have a feeling this changed in a
> version. It forces a console window if it does not exists.
>
> Does anyone know how to change this behavior? So i can have a console
> app and GUI in one exe?
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users