How do make a GUI in C WITHOUT EXTRA LIBRARIES? I mean, I was just wondering how they make those libraries.
How do make a GUI in C WITHOUT EXTRA LIBRARIES? I mean, I was just wondering how they make those libraries.
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.
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);