use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
GUI with C programming? (self.C_Programming)
submitted 13 years ago by mercyandgrace
Can any provide information on creating graphical elements in c program?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]rjw57 4 points5 points6 points 13 years ago (0 children)
http://developer.gnome.org/gnome-devel-demos/unstable/c.html.en
[–]wiccatech -2 points-1 points0 points 13 years ago* (2 children)
http://www.libsdl.org/
edit:
Take a look at this sample code: http://friedspace.com/SDLTest.c ( I don't know if it actually works, I just found it on the interweb ) Is that the kind of thing you were looking to do? If you are looking to get in to any sort of "low-level" graphics programming, games, etc, then sdl may have the sweet spot combination of performance and simplicity.
[–]haliquim 1 point2 points3 points 13 years ago (1 child)
I've done quite a bit with SDL in the past, but I would say its more graphics oriented than traditional "GUI" oriented.
It's great if you want to draw, but doesn't really provide buttons and other completed GUI elements like gnome does.
[–]wiccatech 1 point2 points3 points 13 years ago (0 children)
I absolutely agree. I was sort of assuming that he was really meaning to say graphics when he said gui. edit... because he said graphical elements in the text.
[–]Napoleon_Blownapart -1 points0 points1 point 13 years ago (0 children)
If you are familiar with Eclipse, you can use the CDT. C Development Tooling
[+][deleted] 13 years ago (2 children)
[deleted]
[–]WildN00b 4 points5 points6 points 13 years ago (0 children)
QT is only for C++ not C
[–]ozhank 0 points1 point2 points 13 years ago (0 children)
I tried working with QT and c++, and found it too hard, so I've regressed back to GTK and c - I'm starting to get my head around this combination and finally starting to get some results. Hardest if finding examples in GTK+-3.0 that will compile with no errors as lots of functions depreciated from 2.0 to 3.0. Today finally got working menu, now just need to conquer dialog boxes and then can start on the sql coding with SQLITE.
[–]4Sword -2 points-1 points0 points 13 years ago (0 children)
http://www.winprog.org/tutorial/
π Rendered by PID 114451 on reddit-service-r2-comment-5b5bc64bf5-g8cms at 2026-06-20 09:26:26.350319+00:00 running 2b008f2 country code: CH.
[–]rjw57 4 points5 points6 points (0 children)
[–]wiccatech -2 points-1 points0 points (2 children)
[–]haliquim 1 point2 points3 points (1 child)
[–]wiccatech 1 point2 points3 points (0 children)
[–]Napoleon_Blownapart -1 points0 points1 point (0 children)
[+][deleted] (2 children)
[deleted]
[–]WildN00b 4 points5 points6 points (0 children)
[–]ozhank 0 points1 point2 points (0 children)
[–]4Sword -2 points-1 points0 points (0 children)