openframeworks setting does not display the console window

1. Set Linker under the System- "Select Windows

 

2. Set the entry point, and then compile it

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;
}

 

Guess you like

Origin www.cnblogs.com/yeshuimaowei/p/11694420.html