UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); AllocConsole(); freopen("CONIN$","r",stdin); freopen("CONOUT$","w",stdout); freopen("CONOUT$",stderr); auto simulator = SimulatorWin::getInstance(); int ret = simulator->run(); FreeConsole(); return ret;原文链接:https://www.f2er.com/cocos2dx/338607.html