MCPcopy Create free account
hub / github.com/davisking/dlib / WinMain

Function WinMain

examples/bayes_net_gui_ex.cpp:161–165  ·  view source on GitHub ↗

If you use main() as your entry point when building a program on MS Windows then there will be a black console window associated with your application. If you want your application to not have this console window then you need to build using the WinMain() entry point as shown below and also set your compiler to produce a "Windows" project instead of a "Console" project. In visual studio this can

Source from the content-addressed store, hash-verified

159// Linker->System->SubSystem and selecting Windows instead of Console.
160//
161int WINAPI WinMain (HINSTANCE, HINSTANCE, PSTR cmds, int)
162{
163 main();
164 return 0;
165}
166#endif
167
168// ----------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

mainFunction · 0.70

Tested by

no test coverage detected