void ArxDebug::RedirectIOToConsole() { int hConHandle; long lStdHandle; FILE * fp; if ((m_bConsoleInitialize = CreateDebugConsole())) { freopen("CONOUT$", "wt", stdout); freopen("CONERR$", "wt", stderr); freopen("CONIN$", "r", stdin) ; } }
InjectoraApplication() { #ifdef DEBUG_MESSAGES_ENABLED CreateDebugConsole("Debug"); #endif }