{I+=codeWee;} |
//////////////////////////////// // unsafe (freopen) mode AllocConsole(); freopen("CONOUT$", "w", stdout); ... printf("DEBUG CONSOLE=================\n"); ... ... FreeConsole(); //////////////////////////// // safe (freopen_s) mode AllocConsole(); errno_t err; FILE *stream; err = freopen_s(&stream, "CONOUT$", "w+", stdout); ... printf("DEBUG CONSOLE=================\n"); ... ... FreeConsole();