1.设置Linker 下的System-》选择Windows
2.设置入口函数,然后编译就可以了
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
ofSetupOpenGL(800, 500, OF_WINDOW); // <-------- setup the GL context
ofRunApp(new ofApp());
return 0;
}