alroyso 1 년 전
부모
커밋
c4eaaa1fe4
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      windows/runner/main.cpp

+ 3 - 0
windows/runner/main.cpp

@@ -27,6 +27,9 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
 // https://github.com/dart-lang/sdk/issues/39945#issuecomment-870428151
   if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
     CreateAndAttachConsole();
+  }   else {
+    AllocConsole();
+    ShowWindow(GetConsoleWindow(), SW_HIDE);
   }
   // Initialize COM, so that it is available for use in the library and/or
   // plugins.