GUI programs with C?

This is a discussion on GUI programs with C? within the C Programming forums, part of the General Programming Boards category; Hello Is it possible to make programs with GUI with C? if possible where can I read about it?...

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    48

    GUI programs with C?

    Hello

    Is it possible to make programs with GUI with C?

    if possible where can I read about it?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It's certainly possible, but the mechanics of GUI's [many similar operations done to "things" [objects] that have many similar properties, but are slightly varying] makes C++ a much more attractive language [because C++ allows you to create a base-class for the basic "things" and then extend it through inheritance to do different variants of the same base].

    Don't know of a good reference.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Go and read the GTK+ source code

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Well, any Win32 tutorial would be a good reference, because they are mostly written in C.

    Hereby I recommend the good old theForger's Win32 API Tutorial
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #5
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,146
    note that your code will not be portable if you use the Win32 API though. I personally prefer cross-platform APIs, eg. GTK, or QT for C++.

  6. #6
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,160
    Quote Originally Posted by cyberfish View Post
    note that your code will not be portable if you use the Win32 API though.
    Depends what you mean by "portable." Win32 code will run fine under Wine, in most cases.

  7. #7
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,146
    Depends what you mean by "portable." Win32 code will run fine under Wine, in most cases.
    True. But at the present stage, I don't think wine is at a high enough quality or completeness to rely production code on (it does a very admirable job though). I personally won't rely on wine in codes I write unless there is (a) very good reason(s) to use the Win32 API over natively cross-platform APIs.

    Of course, running "existing" Win32 codes on wine is another story, but I don't recommend writing them in the first place, seeing how many cross-platform libraries are very mature now (as far as I can tell).
    Last edited by cyberfish; 11-04-2007 at 09:23 PM.

  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,146
    Note that my opinion may be biased, since I am a Linux user myself. Therefore, I take portability more importantly than many other programmers do.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI Programming...
    By ShadeS_07 in forum C++ Programming
    Replies: 12
    Last Post: 12-28-2008, 03:58 PM
  2. N00bish problem: GUI programs
    By evermore96 in forum C Programming
    Replies: 2
    Last Post: 04-30-2005, 01:38 AM
  3. Gui
    By laasunde in forum C++ Programming
    Replies: 1
    Last Post: 12-17-2002, 11:54 AM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 02:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 07:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21