dmd 1.063 and 2.048 release

Mike Parker aldacron at gmail.com
Fri Aug 13 01:28:27 PDT 2010


dickl wrote:
> 
> Looks like it might be windows specific. This doesn't work (only prints 
> out "again"
>
> 
> extern (Windows) int WinMain(HINSTANCE hInstance,HINSTANCE 
> hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
> {

FYI, if you didn't already know, you can avoid WinMain entirely and just 
use a regular main function and still get a windowed app with no 
console. Just pass the following command line option to DMD:

-L/SUBSYSTEM:windows:5

And you can replace the 5 with a 4 if you want to support Win 9x.


More information about the Digitalmars-d-announce mailing list