cocos2dx 开启控制台

cocos2dx 开启控制台
 1 BOOL WINAPI HandlerRoutine(DWORD dwCtrlType)
 2 {
 3     if (dwCtrlType == CTRL_CLOSE_EVENT)
 4     {
 5         FreeConsole();
 6     }
 7     return TRUE;
 8 }
 9 
10 //开启控制台
11 AllocConsole(); 
12 SetConsoleCtrlHandler(HandlerRoutine, TRUE);
13 // freopen("CONOUT$", "w+t", stdout);
14 // freopen("CONIN$", "r+t", stdin);
15 freopen("CONIN$", "r", stdin);
16 freopen("CONOUT$", "w", stdout);
17 freopen("CONOUT$", "w", stderr);
View Code

cocos2dx 开启控制台

上一篇:一个不知道哪错的错!


下一篇:Device ID