Thread: GUI's

  1. #1
    Registered User yann's Avatar
    Join Date
    Sep 2009
    Location
    Zagreb, Croatia
    Posts
    186

    GUI's

    Hi people here I am again to ask you; how do I make a GUI in C?
    I have Linux...
    Arduino rocks!

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    399

  3. #3
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    Or KDE or FLTK or just TK or.... ^__^
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by jeffcobb
    Or KDE or FLTK or just TK or.... ^__^
    Well... KDE is not a GUI library (and Qt is for C++), FLTK is for C++, and I am not sure about Tk.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    KDE uses Qt which is C++.

    Gtk is the most widely used on linux anyway, eg, most apps that are not specifically part of the KDE desktop are gtk.

    Besides the intro Memloop mentioned, there's a forum:
    GTK+ Programming

    Of course, the API docs:
    GTK+ Reference Manual

    and a beginning tutorial:
    GTK+ 2.0 Tutorial
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  6. #6
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    Correct one and all. The only point I was making is that there are a lot of choices and there is no "one true way". But you are correct the ones I listed are C++ (I think Tk has C bindings not that it matters really)...
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  7. #7
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Easy Button - Install WINE and write for the Windows API

    Hard Button

  8. #8
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Quote Originally Posted by abachler View Post
    Easy Button - Install WINE and write for the Windows API

    Hard Button
    Can you access any of the WPF stuff from pure C?

  9. #9
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    What, Windows Presentation Foundation from C?
    No way, no how. C is way too limited to work properly with it.
    You need a dotNet language such as C# or C++/CLI.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #10
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Elysia View Post
    C is way too limited to work properly with it.
    What Elysia means is, the core functions are written in C++, which is a choice made by the developers.

    This is bad joke perpetuated by (some) C++ programmers, that it somehow allows you to do something you could not do in C -- the method will be different, the result will be the same.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  11. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Ah, that is not to say that you cannot do the same stuff in C as with WPF. You can. In a different way.
    However, you cannot use WPF with C.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ GUI's
    By StickyGoo in forum C++ Programming
    Replies: 7
    Last Post: 04-14-2006, 11:27 PM
  2. Best Language for GUIs?
    By thetinman in forum Windows Programming
    Replies: 4
    Last Post: 03-05-2006, 10:08 AM
  3. Creating GUI's in C++ Builder 6
    By axidentProne in forum C++ Programming
    Replies: 6
    Last Post: 09-28-2004, 10:59 AM
  4. help (C or C++) gui's
    By johnc in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-02-2002, 11:17 PM
  5. Windows GUIs
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-02-2001, 08:21 AM