On Tuesday, 24 July 2018 at 08:48:54 UTC, Mike Franklin wrote:
Here's my test
extern (Windows)int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
When using WinMain, subsystem:windows is the default. The OP wants to use main as the entry point, where the console subsystem is the default.