Example #1
0
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) ;
	}

}
Example #2
0
	InjectoraApplication() { 
		#ifdef DEBUG_MESSAGES_ENABLED
		CreateDebugConsole("Debug"); 
		#endif
	}