Re: Gtk+ and Windows
- From: Tor Lillqvist <tml iki fi>
- To: Jan Boehm <jan boehm ifp uni-stuttgart de>
- Cc: inra tuxfamily org, gtk-app-devel-list gnome org
- Subject: Re: Gtk+ and Windows
- Date: Mon, 30 Jun 2003 18:31:07 +0000
Jan Boehm writes:
int argc = 1;
char* prgname = "STREAM.exe";
char** argv=&prgname;
return main(argc, argv);
Instead of hardcoding a dummy argv like this, why not use the real
argv, so that the user may pass command line arguments even if it is a
GUI program:
#include <stdlib.h>
...
return main(__argc, __argv);
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]