|
|
|
|
|
by billforsternz
4454 days ago
|
|
I always thought that the whole WinMain() thing was an ugly mistake. The right way to do this would be to organise the libraries and startup code so that the simplest Windows GUI program was not 50 or 100 lines of boilerplate, but was instead something like; #include <windows.h>
void main()
{
WinGuiInit();
WinGuiMessageLoopRun();
}
Or similar. Extra functions and parameters as required to setup custom icons, window classes, message handlers, whatever. |
|
[1] http://stackoverflow.com/questions/11785157/replacing-winmai...