Win32 App with main() entry point

by on January 15, 2016

The Problem For a long time I’ve used one of two patterns for the entry point in cross platform projects. Either a separate entry point cpp file per platform with the win32 version containing WinMain()  and the others containing main() . Or select entry point via preprocessor. #ifdef _WIN32 int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int ) […]