Click to See Complete Forum and Search --> : C or C++


goon12
03-23-2001, 12:47 PM
I am a beginner-intermediate C programmer. I also know a good amout of C++. For developing Gui's, which is better and why?

Stuka
03-23-2001, 12:57 PM
IMO, C++ is better for developing GUIs because GUIs are, almost by definition, an OO environment - you have multiple objects (whether buttons, windows, or processes even) communicating back and forth with each other and the OS (in a multitasking system, at least). Just the way the system works lends itself to OO principles (for example, GTK+ uses an OO design philosophy with C, which is effective, but sorta ugly, if ya ask me), which makes C++ a better choice. That's my $.02 :)

goon12
03-23-2001, 01:01 PM
Thanks for the input :)

Strike
03-23-2001, 02:25 PM
That's why you use GTK-- (http://gtkmm.sourceforge.net) - the C++ language binding for GTK+. It is much cleaner than GTK+ by itself if you ask me.