ecere/gui/Win32Interface: Fixed issue with make clean failing when IDE is launched...
authorJerome St-Louis <jerome@ecere.com>
Wed, 24 Oct 2012 08:05:13 +0000 (04:05 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 24 Oct 2012 08:05:13 +0000 (04:05 -0400)
- Now attaching parent process console for GUI applications

ecere/src/gui/drivers/Win32Interface.ec

index a97547b..5d6429c 100644 (file)
@@ -7,7 +7,7 @@ import "instance"
 #if defined(__WIN32__)
 
 #define WINVER 0x0500
-#define _WIN32_WINNT 0x0500
+#define _WIN32_WINNT 0x0501
 
 #undef JOY_BUTTON1
 #undef JOY_BUTTON2
@@ -19,6 +19,7 @@ import "instance"
 #define byte _byte
 #define int64 _int64
 #include <windows.h>
+#include <wincon.h>
 #include <shellapi.h>
 
 
@@ -1149,6 +1150,7 @@ class Win32Interface : Interface
          null,
          className
       };
+      AttachConsole(-1);
       wcl.hInstance = hInstance = GetModuleHandle(null);
       RegisterClass(&wcl);