Thread: Need your experience

  1. #1
    Registered User
    Join Date
    Nov 2008
    Location
    Greece,Athens
    Posts
    17

    Need your experience

    Hello.Semester ends and i was thinking of making a basic simple program running on a window (all my exercises were console applications) when i got time after exams.

    I got some basic knowledge (arrays,structures,functions,pointers,strings,file I/O) and with it i had made programs about linked list/linked stack/linked queue (insert,delete,search,sort ,show) ,binary search tree(insert,delete,show)random access files of records (insert,delete ,show,search) and others on this level.(trying to give you a general picture)

    i made a quick search and i found GTK+ and Windows API can be used with C.i wanted to ask you if i have a chance to learn+use any of them or i still lack basic knowledge needed to do it.thanks in advance.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I started learning gtk+ 2.0 just after I started with C, and you probably know more now than I did then. I had done GUI programming in perl before, but I don't think that makes much difference beyond already knowing what a widget is and some other simple basic concepts.

    It was difficult at first (I think any API of that size will be), but not too much so and has been very rewarding. I have not tried porting anything to windows, but the actual gtk is identical as far as I can tell except for the occasional small difference mentioned in the documentation (which is to say it seems very portable). You might want to find a book for this one eventually, I think there are several around. But for now the online tutorials, etc. will probably get you started.

    There is also a gtk forum which is fairly active.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Nov 2008
    Location
    Greece,Athens
    Posts
    17
    if i try with windows api will be easier?

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Windows API is usually even harder. And messier.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    C / C++
    Join Date
    Jan 2006
    Location
    The Netherlands
    Posts
    312
    Windows API is terrible, GTK+ is nice and structured. I prefer Qt above GTK+, but that's for C++ (it's Object Orientated, but platform-independent too).
    Operating Systems:
    - Ubuntu 9.04
    - XP

    Compiler: gcc

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Ideswa
    I prefer Qt above GTK+, but that's for C++ (it's Object Orientated, but platform-independent too).
    A little off topic, but a better comparison with Qt in that respect would be gtkmm, the official C++ wrapper for GTK+.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Registered User
    Join Date
    Nov 2008
    Location
    Greece,Athens
    Posts
    17
    hmm,ok i will try with GTK+ then."widgets",have seen this mentioned many times. i guess i should start with understanding that part. do you know any book about GTK+ ,that uses simple language and has many code examples?i am more comfortable looking to simple code and accurate comments than reading pages of text.although, any suggestion is welcome of course.thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Programming opportunities! (Midway Games, Inc)
    By Midwayrecruiter in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 08-20-2008, 11:02 AM
  2. What is one year of experience?
    By medievalelks in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 06-04-2008, 08:56 AM
  3. Are You An Experienced Programmer? Do You Like Football/soccer? (uk)
    By Mark Smulders in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 06-28-2007, 01:53 AM
  4. Printing in XP using C
    By j2005 in forum C Programming
    Replies: 16
    Last Post: 03-07-2006, 06:34 AM
  5. 32-bit ASM or COM :: Experience
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 10-04-2002, 12:39 PM