| 105 | } |
| 106 | |
| 107 | void AllocAndBindConsole_() |
| 108 | { |
| 109 | AllocConsole(); |
| 110 | FILE* f; |
| 111 | freopen_s(&f, "CONOUT$", "w", stdout); |
| 112 | freopen_s(&f, "CONOUT$", "w", stderr); |
| 113 | freopen_s(&f, "CONIN$", "r", stdin); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) |