Hi Paul,
To be clear, subsystem windows should be set on the linker settings for the (final) .exe - for both debug and release configurations.
normally it causes a linker error:
error LNK2019: unresolved external symbol WinMain referenced in function __tmainCRTStartup

a simple implementation:

#if defined(WIN32)
//for /SUBSYSTEM:WINDOWS, (no console window is created)
//set configuration property's Linker->System->subsystem to WINDOWS
int APIENTRY
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
    return main(__argc, __argv);
}
#endif

Laurens.


On 6/29/2014 12:12 AM, Paul wrote:
Yup,   I've done that..  I still have a Console window when I run the app.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60041#60041





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to