On 8/13/2010 4:28 AM, Mike Parker wrote:
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.
This is just a test example to cut the code size down. It not a
representation of the application.