[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Gtk+ and Windows



Yes, definetly a good alternative. In my setup, however, the argv is set
from the Visual Studio Project Parameter $$ROOT$$ in the template.
That's why it "looks" hardcoded, but actually is project dependent.

Jan

Tor Lillqvist wrote:

>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
>
>
>_______________________________________________
>gtk-app-devel-list mailing list
>gtk-app-devel-list@gnome.org
>http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
>
>  
>


-- 
-----------------------------------------------------------------
    _/_/_/ _/  _/        Jan Boehm  Dipl.-Inform. M.Sc.
   _/_/_/    _/   _/_/   Institut fuer Photogrammetrie
  _/_/_/ _/ _/_/ _/ _/   Universitaet Stuttgart
_/_/_/ _/ _/   _/_/     Geschwister-Scholl-Str. 24
          _/   _/        D-70174 Stuttgart
-----------------------------------------------------------------
Tel : +49-711-121-4110   Email : jan.boehm@ifp.uni-stuttgart.de
Fax : +49-711-121-3297   WWW   : www.ifp.uni-stuttgart.de
-----------------------------------------------------------------







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]