cocos2dx vs2010打开打印窗口

vs2010下调试时,有时需要有打印窗口。

在main.cpp函数的开始处,加入一下

AllocConsole();
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);

在需要打印的时候,使用CCLOG函数就可以在窗口打印出来了。

 

posted @ 2014-10-17 18:56  曹国平  Views(211)  Comments(0)    收藏  举报