当前位置 : 主页 > 手机开发 > 其它 >

cocos2dx 在win32打开黑色命令行

来源:互联网 收集:自由互联 发布时间:2021-06-13
UNREFERENCED_PARAMETER(hPrevInstance);UNREFERENCED_PARAMETER(lpCmdLine);AllocConsole();freopen("CONIN$", "r", stdin);freopen("CONOUT$", "w", stdout);freopen("CONOUT$", "w", stderr);auto simulator = SimulatorWin::getInstance();int ret = simu
UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

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

	auto simulator = SimulatorWin::getInstance();
	int ret = simulator->run();
	FreeConsole(); 
    return ret;
网友评论