Ah, I couldn’t remember why I had two different versions of that code hanging around, so cleaned it up. I guess the reason the old code was there is because otherwise it breaks if you’ve already included windows.h. Thanks, I’ll sort that out…
As it is written, it would seem the declaration of WinMain might break, since it is hard-coded to use a non-unicode string. To declare WinMain correctly for all values of the UNICODE project setting I think you want to use LPTSTR instead of LPSTR.
I must say that I’m confused about the differences between what you have there, and LPSTR and HINSTANCE… I totally thought those were char* and void* respectively…? Or is there some hidden unicode bs flag that affects this stuff?
I’m using currently the commit tagged with 2.0.27.
This version does not work with unicode and Windows.h included. When I change the WinMain definition from
int __stdcall WinMain (HINSTANCE, HINSTANCE, const LPTSTR, int)
to
int __stdcall WinMain (HINSTANCE, HINSTANCE, const LPSTR, int)