473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

GUI Programming with C?

I've been learning how to program with C, and I can't find any info about
GUI programming with C. I'm almost done with O'reilly's Practical
programming with C, and would like to mess around with GUI programming with
C. I understand that it's easier to move to C++ or a few other languages
(namely GTK+ or QT), but I'd like to stick with just C for awhile so I don't
get too confused. I've been told that I should stick with a language for
awhile and make sure I know it inside and out before I move on. I also think
that I could learn alot about C and my hardware if I were to dabble with GUI
programming using C.

If anyone can point me in the right direction I'd be very greatful.
Nov 14 '05 #1
7 1684
"Jesse B." <ja******@adelphia.net> writes:
I've been learning how to program with C, and I can't find any info about
GUI programming with C.


Your question is outside the domain of comp.lang.c, which discusses
only the standard C programming language, including the standard C
library. This is a remarkably narrow topic compared to what many
people expect.

For your convenience, the list below contains topics that are not
on-topic for comp.lang.c, and suggests newsgroups for you to explore
if you have questions about these topics. Please do observe proper
netiquette before posting to any of these newsgroups. In particular,
you should read the group's charter and FAQ, if any (FAQs are
available from www.faqs.org and other sources). If those fail to
answer your question then you should browse through at least two weeks
of recent articles to make sure that your question has not already
been answered.

* OS-specific questions, such as how to clear the screen,
access the network, list the files in a directory, or read
"piped" output from a subprocess. These questions should be
directed to OS-specific newsgroups, such as
comp.os.ms-windows.programmer.misc, comp.unix.programmer, or
comp.os.linux.development.apps.

* Compiler-specific questions, such as installation issues and
locations of header files. Ask about these in
compiler-specific newsgroups, such as gnu.gcc.help or
comp.os.ms-windows.programmer.misc. Questions about writing
compilers are appropriate in comp.compilers.

* Processor-specific questions, such as questions about
assembly and machine code. x86 questions are appropriate in
comp.lang.asm.x86, embedded system processor questions may
be appropriate in comp.arch.embedded.

* ABI-specific questions, such as how to interface assembly
code to C. These questions are both processor- and
OS-specific and should typically be asked in OS-specific
newsgroups.

* Algorithms, except questions about C implementations of
algorithms. "How do I implement algorithm X in C?" is not a
question about a C implementation of an algorithm, it is a
request for source code. Newsgroups comp.programming and
comp.theory may be appropriate.

* Making C interoperate with other languages. C has no
facilities for such interoperation. These questions should
be directed to system- or compiler-specific newsgroups. C++
has features for interoperating with C, so consider
comp.lang.c++ for such questions.

* The C standard, as opposed to standard C. Questions about
the C standard are best asked in comp.std.c.

* C++. Please do not post or cross-post questions about C++
to comp.lang.c. Ask C++ questions in C++ newsgroups, such
as comp.lang.c++ or comp.lang.c++.moderated.

* Test posts. Please test in a newsgroup meant for testing,
such as alt.test.

news.groups.questions is a good place to ask about the appropriate
newsgroup for a given topic.

--
"Welcome to the wonderful world of undefined behavior, where the demons
are nasal and the DeathStation users are nervous." --Daniel Fox
Nov 14 '05 #2


Jesse B. wrote:
I've been learning how to program with C, and I can't find any info about
GUI programming with C. I'm almost done with O'reilly's Practical
programming with C, and would like to mess around with GUI programming with
C. I understand that it's easier to move to C++ or a few other languages
(namely GTK+ or QT), but I'd like to stick with just C for awhile so I don't
get too confused. I've been told that I should stick with a language for
awhile and make sure I know it inside and out before I move on.

Whoever told it got it right. So the moment you are comfortable with
all the nitty-gritties of the language, all you would need to start on a
GUI programming is to have

- a good API documentation
- a wide vareity of samples
- specific newsgroups / mailing lists for the toolkit.

I am pretty sure that both GTK and QT satisfy all the three. (Though
personally I would prefer a newsgroup to a mailing list).

On the other hand, if you want to do serious graphics programming, i
would say it is an entirely different domain, that is. You need to start
with some standard API - OpenGL, DirectX (all of them are beyond the
scope of c.l.c , though specific newsgroups do exist for them ).
All the best.

--
Rakesh Kumar
** Remove nospamplz from my email address for my real email **
Nov 14 '05 #3
Jesse B. wrote:
I've been learning how to program with C
and I can't find any info about GUI programming with C.


I used Google

http://www.google.com/

to search for

+"GUI" +"C programming"

and I found lots of stuff.

Nov 14 '05 #4

"Jesse B." <ja******@adelphia.net> wrote in message
news:gt********************@adelphia.com...
I've been learning how to program with C, and I can't find any info about GUI programming with C. I'm almost done with O'reilly's Practical
programming with C, and would like to mess around with GUI programming with C. I understand that it's easier to move to C++ or a few other languages (namely GTK+ or QT), but I'd like to stick with just C for awhile so I don't get too confused. I've been told that I should stick with a language for awhile and make sure I know it inside and out before I move on. I also think that I could learn alot about C and my hardware if I were to dabble with GUI programming using C.

If anyone can point me in the right direction I'd be very greatful.


Books by Charles Petzold for Windows.

--
Mabden
Nov 14 '05 #5
In <gt********************@adelphia.com> "Jesse B." <ja******@adelphia.net> writes:
I've been learning how to program with C, and I can't find any info about
GUI programming with C. I'm almost done with O'reilly's Practical
programming with C, and would like to mess around with GUI programming with
C.


That's because C doesn't officially support any GUI and each GUI has its
own C API. So, after *mastering* the C language, find a book about
programming in C with the GUI of your choice (there are plenty of books
about programming in C for Win32 and X11, at least).

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #6

"Jesse B." <ja******@adelphia.net> wrote in message
news:gt********************@adelphia.com...
I've been learning how to program with C, and I can't find any info about
GUI programming with C. I'm almost done with O'reilly's Practical
programming with C, and would like to mess around with GUI programming with C. I understand that it's easier to move to C++ or a few other languages
(namely GTK+ or QT), but I'd like to stick with just C for awhile so I don't get too confused. I've been told that I should stick with a language for
awhile and make sure I know it inside and out before I move on. I also think that I could learn alot about C and my hardware if I were to dabble with GUI programming using C.

If anyone can point me in the right direction I'd be very greatful.


GTK and QT are third-party libraries, not languages unto themselves.

Since C doesn't natively support any kind of GUI calls, you're going to need
to rely on libraries provided by your system (such as the Windows API or the
Mac Toolbox (pre-OS X)) or a third party (GTK, QT).

Based on the very few times I've done it, I'd say that C is absolutely the
wrong tool for writing GUIs. Depending on the library, it can go from being
merely tedious to downright torture. You have memory management issues out
the wazoo, funky data structures, fairly complex pointer expressions
(something like *((**foo)->bar) wasn't uncommon) . You have to ratchet up
your definition of a "small" program by an order of magnitude.

It's okay to do it as an intellectual exercise, though.
Nov 14 '05 #7

Thank you all for the feedback. I will be sure to check out those resources,
and watch what I post and where I post it. Thank you for having patience and
being understanding to a rookie like myself.
Nov 14 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Martin | last post by:
When was inheritance intruduced into object oriented programming? More generally, does anyone know or have any sources on when the different features were introduced into object oriented...
12
by: G. | last post by:
Hi all, During my degree, BEng (Hons) Electronics and Communications Engineering, we did C programming every year, but I never kept it up, as I had no interest and didn't see the point. But now...
3
by: user | last post by:
Hi all, At the outset, I regret having to post this slightly OT post here. However, I strongly feel that people in this group would be the best to advise me on my predicament. I am working as...
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
7
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
30
by: Jakle | last post by:
I have been googling, but can seem to find out about C GUI libraries. My main platform is Windows, but it would be nice to find a cross platform library. I've been programming with php, which...
47
by: Thierry Chappuis | last post by:
Hi, I'm interested in techniques used to program in an object-oriented way using the C ANSI language. I'm studying the GObject library and Laurent Deniau's OOPC framework published on his web...
111
by: Enteng | last post by:
Hi I'm thinking about learning C as my first programming language. Would you recommend it? Also how do you suggest that I learn it?What books/tutorials should I read for someone like me? Thanks...
14
by: deko | last post by:
For building Windows desktop apps, the clear favorite is C#. But my clients can't afford to buy Microsoft products. So I need to develop software for Linux users and web applications. In the...
17
by: CoreyWhite | last post by:
I bought this book years ago, when I was just learning C++. Since then I've gone through every math course offered at my college, taken courses on coding C & thinking in terms how how to make the...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.