Thread: Gui in C

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    103

    Gui in C

    How do make a GUI in C WITHOUT EXTRA LIBRARIES? I mean, I was just wondering how they make those libraries.

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    1,012
    What are "extra" libraries?

    Trying to use nothing but standard C is probably not going to get you far. But if you mean without using, say, Motif, then you'd want to start, I suppose, by looking at Xlib's source code (available from Xorg). Or you could look at Motif's source code (either lesstif or openmotif), although it probably uses Xt somewhere, and even if it doesn't, you're still looking at Xlib eventually.

    Using Xlib means doing POSIX things (sockets, for example), so not standard C. But it's pretty far removed from a toolkit.

    If you are interested in non-unix systems, the idea is likely similar.

  3. #3
    apprentiCe
    Join Date
    Oct 2008
    Location
    Hyderabad,India
    Posts
    136
    Quote Originally Posted by Poincare View Post
    How do make a GUI in C WITHOUT EXTRA LIBRARIES? I mean, I was just wondering how they make those libraries.
    you cannot...

    i recommend you study Qt GUI library, it is a popular GUI toolkit and works on windows or UNIX like platforms...but if you want to study GUI toolkit in C specifically study Gtk+

    both of them are open-source...so you can see how they make those libraries...Qt is made in C++. Gtk+ is made in C
    Last edited by creeping death; 03-29-2009 at 09:14 PM.
    Code:
    printf("%c%c%c%c%c%c%c",0x68,0x68^0xd,0x68|0x4,0x68|0x4,0x68|0xf,0x68^0x49,0x68^0x62);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 04:39 AM
  2. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 04:22 PM
  3. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 03:22 PM
  4. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM
  5. GUI (Graphical User Interface) Help Needed
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-11-2001, 10:35 AM