alroyso 1 tahun lalu
induk
melakukan
5c6d5bb3d4
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      windows/runner/main.cpp

+ 5 - 3
windows/runner/main.cpp

@@ -21,10 +21,12 @@ 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);
+
   }
+//    } else {
+//    AllocConsole();
+//    ShowWindow(GetConsoleWindow(), SW_HIDE);
+//  }
   // Initialize COM, so that it is available for use in the library and/or
   // plugins.
   ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);