[Issue 10034] wWinMain and wmain fail to link

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 5 15:33:03 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10034


Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras at gmail.com


--- Comment #3 from Simen Kjaeraas <simen.kjaras at gmail.com> 2013-05-05 15:33:02 PDT ---
Windows supports neither WinMain nor wWinMain. Windows supports a starting
address. MSVC, on the other hand, supports both WinMain and wWinMain. According
to documentation, WinMain is the official entry point, and wWinMain is magical,
in that it creates a thunk that calls GetCommandLineW and passes that to
wWinMain.

DMD would thus be free to call its Unicode version of WinMain wWinMain,
WinSecondary, foo, or anything else (same goes for the ANSI version). It could
even (gasp!) call it WinMain, and create a thunk if the parameters indicate it
should be using Unicode.

See remarks here:
http://msdn.microsoft.com/en-us/library/ms633559.aspx

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list