Re: Fundamental question about main parameters...



On Tue, 2009-06-30 at 16:10 +0200, Sever P A wrote:
> Hello,
> 
> In my app. main.cc, there is something like...
> 
> ---
> int main(int argc, char *argv[])
> {
>    Gtk::Main kit(argc, argv);
>    Class object;
>    Gtk::Main::run (object);
>    return 0;
> }
> ---
> 
> It would seems a fundamental C++ programming question but, I'd like to
> ask you for the best way  to transfer the main parameters values to
> "Class" member vars...

Glib::OptionContext makes this quite easy:
http://git.gnome.org/cgit/glibmm/tree/examples/options/main.cc

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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