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.

Reply via email to