cocos2dx vs2010打开打印窗口
vs2010下调试时,有时需要有打印窗口。
在main.cpp函数的开始处,加入一下
AllocConsole();
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
在需要打印的时候,使用CCLOG函数就可以在窗口打印出来了。
vs2010下调试时,有时需要有打印窗口。
在main.cpp函数的开始处,加入一下
AllocConsole();
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
在需要打印的时候,使用CCLOG函数就可以在窗口打印出来了。