#include "main.h" #include "AppDelegate.h" #include "cocos2d.h" #if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 #define USE_WIN32_CONSOLE #endif USING_NS_CC; int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); //分配 #ifdef USE_WIN32_CONSOLE AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); #endif // create the application instance AppDelegate app; return Application::getInstance()->run(); //释放 #ifdef USE_WIN32_CONSOLE FreeConsole(); #endif }
coco2d-x 在vs(2013)下,CCLog输出,显示控制台
最新推荐文章于 2019-07-26 07:33:34 发布