ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How much experience with C++ should I have before I start doing GUI projects? Or will I be learning more C++ by doing all my projects in GUI. I'm a giant newb at programming right now, but I know what GUI is and all that stuff. I'm just wondering how difficult using GTK would make the most basic of projects.
Actually, GTK is written in standard C. I believe there's an extension/wrapper/port available to use C++, but I've never looked into it. So I don't know whether it supports everything GTK does in an object framework or if it lags behind.
i've been using GTK for 4 years now, and it's got a really intuitive API, and makes developing aps really simple. Like Dark_Helmet said, it's originally in C, but i write acidrip using the perl bindings. I wouldn't worry at all about the state of the C++ bindings, find a tutorial and jump in.
The official C++ Binding for GTK+ is http://gtkmm.org/ . It's part of of the GNOME language binding project and uses the GNOME release scheldue.
The only mayjor ceaveat for newbies is a change in the event calling syntax, so make sure you don't try compiling GTKmm 2.4 examples with GTKmm 2.2 installed. However, the GTKmm 2.2 documentation is still online.
Um, and the documentation is really nice, IMHO. There's a nearly complete book online available.
My Experience with C++ and GTKmm is quite Good, I take some trainign to refresh My C++ fundas , and Discuss the GTK+ with friends daily . Glade is good to use, but we didn't use it , just use vi as editor.
Also, Anjuta is Good IDE , for Programming..
Originally posted by clausi The only mayjor ceaveat for newbies is a change in the event calling syntax, so make sure you don't try compiling GTKmm 2.4 examples with GTKmm 2.2 installed. However, the GTKmm 2.2 documentation is still online.
Yes, that one threw me off for a little while! It was something to do with connecting slots and signals, I seem to remember.
Anyway, I found GTKMM very easy to use and the documentation very complete. I hadn't done much C++ programming before as I'm primarily a Java programmer, but I got stuck in and made a clone of Risk. All it needs now is some AI...which would be easier if I knew how to combine C++ and prolog.