As Microsoft themselves explain it, console programs use main()
, but non-console Win32 programs use WinMain()
as the entry-point. In fact, using main()
in a Win32 project in Visual Studio will result in a linker error.
But in Qt projects, whether created from Qt Creator or Visual Studio, the GUI programs use main()
just like the console programs. How do the Qt folks manage to do it?