Standalone hxcpp exe on windows avoid console?

107 views
Skip to first unread message

der Raab

unread,
Oct 25, 2016, 4:52:05 AM10/25/16
to Haxe
Hi again, when I double click on a generated hxcpp.exe it opens and closes a console window. Is there a way to avoid that? I've read -D no_console is not supported anymore and the console should never show up? Thanks again!

Hugh

unread,
Oct 26, 2016, 12:32:11 AM10/26/16
to Haxe
This looks like a bug - will have to have a look.

der Raab

unread,
Nov 3, 2016, 3:58:54 AM11/3/16
to Haxe
Is there something I could do?

Hugh

unread,
Nov 18, 2016, 1:01:41 AM11/18/16
to Haxe
I gave this another go, and it seems to be working.

The logic is that this should set the 'SUBSYSTEMWINDOWS" variable:

which should then define "HX_WIN_MAIN" (check command line for this define)

Which should bring in WinMain from:

Which then has no console by default.

Hugh

If you can debug this sequence, you might be able to see where it goes wrong.

Hugh
Reply all
Reply to author
Forward
0 new messages