You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you execute a compiled Win32 (non-console) application such as the Notepad example, the console application that launches it remains visible.
In #126, @ilopX suggests a clever workaround technique to patch the console executable with the same header that you'd get from the /SUBSYSTEM:WINDOWS linker command in Visual Studio. This solution makes me slightly nervous due to the brute force nature of hot-patching binaries.
For completeness, another approach that doesn't require patching executables is to add this to the first line of your main() function:
ShowWindow(GetConsoleWindow(), SW_HIDE);
although I concede that this generates a very quick flash as it loads and immediately closes the console window.
This also feels like a good feature request for the Dart compiler, to solve this without the downsides of either of our proposals.
Opening this issue to explore solutions to this problem.
The text was updated successfully, but these errors were encountered:
When you execute a compiled Win32 (non-console) application such as the Notepad example, the console application that launches it remains visible.
In #126, @ilopX suggests a clever workaround technique to patch the console executable with the same header that you'd get from the
/SUBSYSTEM:WINDOWS
linker command in Visual Studio. This solution makes me slightly nervous due to the brute force nature of hot-patching binaries.For completeness, another approach that doesn't require patching executables is to add this to the first line of your
main()
function:although I concede that this generates a very quick flash as it loads and immediately closes the console window.
This also feels like a good feature request for the Dart compiler, to solve this without the downsides of either of our proposals.
Opening this issue to explore solutions to this problem.
The text was updated successfully, but these errors were encountered: