MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / _tWinMain

Function _tWinMain

proj.win32/main.cpp:32–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#define USE_WIN32_CONSOLE
31
32int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
33{
34 UNREFERENCED_PARAMETER(hPrevInstance);
35 UNREFERENCED_PARAMETER(lpCmdLine);
36
37 // create the application instance
38#ifdef USE_WIN32_CONSOLE
39 AllocConsole();
40 freopen("CONIN$", "r", stdin);
41 freopen("CONOUT$", "w", stdout);
42 freopen("CONOUT$", "w", stderr);
43#endif
44
45 // create the application instance
46 AppDelegate app;
47 int ret = Application::getInstance()->run();
48
49#ifdef USE_WIN32_CONSOLE
50 FreeConsole();
51#endif
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected