AllocConsole

C++ Code :

 
  1. #define CONSOLE_LOG 1
  2. #if CONSOLE_LOG
  3.     AllocConsole();
  4.     SetConsoleTitle(_T("Debug Console for output"));
  5.     freopen("CONOUT$","w+t",stdout);
  6.     freopen("CONIN$","r+t",stdin);
  7. #endif
WriteConsole, GetStdHandle....
posted @ 2016-04-13 17:45  Atlas_wu  阅读(556)  评论(0编辑  收藏  举报