Re: Compiling under Windows using MSCV
- Date: Wed, 30 Apr 2008 17:15:01 +0300
- From: "Tor Lillqvist" <tml@xxxxxx>
- Subject: Re: Compiling under Windows using MSCV
> char *argv[1];
> argv[0] = "foo";
> int argc = 0;
>
> return main(argc, argv);
Or even:
#include <stdlib.h>
...
return main (__argc, __argv);
__argc and __argv are set up by the C runtime at startup based on the
command line used to start the process even for WinMain programs.
--tml
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list