Hi again,first i must say that i am familiar with c++ but only console programming. I am beginner so can you please be more gentle. I want to move on programming with buttons,windows,check boxs,input box and so on,i have heard of API and GUI what is the diference ? They are used for ? And when i try to compile some code Qt 4 code with DevC++ it gives me a lot of error,can you tell me why i get that error,do i need new compiler or there are missing compiler libraries ? Thanks for your help and lost time with my problem :)
Basically an API is like a library, or a bunch of resources that one progammer/programmers made for others to implement.
A GUI is any program that interacts with the user with graphics
The reason Qt isn't compiling is probably because you're doing it wrong, or you don't have qt on your computer. What OS are you using? It should come with most KDE linux distros
I suggest learning Gtk+, it's much easier for beginners http://zetcode.com/tutorials/gtktutorial/
Hope I helped :)
athlon32
Junior Poster in Training
97 posts since Jan 2009
Reputation Points: 67
Solved Threads: 16
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
I would suggest allegro (probably version 4.2). I've been using it for about a year, and it makes it super easy to program gui. Plus it is platform independent so you can take code written on a windows pc and compile it on a mac or linux. It even supports systems like beOS.
Go to alleg.sourceforge.net for the download and http://wiki.allegro.cc/ for the how to.
Hope this helps!
waldchr
Junior Poster in Training
90 posts since Jun 2008
Reputation Points: 8
Solved Threads: 6
Oh! Learning wxwidgets and C++ are easier, at least for me it have been. You use C++ codes. Only there are ready classes that you inherit to make your GUI and all the widgets. So with GUI, you must be immersed in C++ OOP concepts especially Inheritance.
That Book plus tutorials like one in www.zetcode.com should boost you up. But In case you choose wxWidgets as your GUI toolkit.
Here are GUI toolkit (Heavy weight ones) that closely compete:
1. wxWidgets
2. QT
3. GTKmm
So once you choose one, you have a go! :)
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
Thanks i will try that,so now here is what i think about application programming : You dont need to know for example a lot of c++(except functions,classes)
that's not necessarily true, you should probably know pointers and references if you want to product code that is worthwhile,the main thing about making applications is the GUI,i sow examples of Qt4 and all the stuffs were made in Qt4,there was nothing like "cout" and etc,or i am wrong about the meaning for making applications ?
Many times toolkits take things like consle output into there own hands. For example in Gtk+ there is not printf() ; instead you use g_print() . This stuff depends on the toolkit/API
I also noticed you've gotten referals to like 5 different toolkits/APIs; I just wanted to say this:
I suggest learning Gtk+ as your first GUI toolkit, here's an article about it, and why it's good etc: http://www.freesoftwaremagazine.com/community_posts/why_gtk_may_just_be_best_gui_toolkit_ever
Once you have some experience in GUIs move onto Win32 if you are planning to do anything in Windows. Win32 is the best way to make GUIs in Windows
Hope I helped :)
athlon32
Junior Poster in Training
97 posts since Jan 2009
Reputation Points: 67
Solved Threads: 16
on,i have heard of API and GUI what is the diference ?
Most of the time, the functions to create a GUI are part of an API, but the difference lies in the fact that an API doesn't necessarily have to feature a GUI, we could for example talk about a network API, which enables you to let your program communicate over a network.(Possible) Definitions:
An application programming interface (API) is a set of routines, data structures, object classes and/or protocols provided by libraries and/or operating system services in order to support the building of applications.A graphical user interface (GUI, ) is a type of user interface which allows people to interact with electronic devices such as computers.
(Most of the time you can also make use of a mouse pointer within a GUI, but this isn't necessarily always the case, you can also have GUI's which only interact via a keyboard for example).
You actually already know what a GUI is: you probably use it all the time when you're working on your computer, you can control it with mouse and keyboard...
Oh, yes: If I had to choose between GTK+ and wxWidgets, I would choose wxWidgets.
Though this is just my opinion, the only way to find out what the best for you is, is by trying them out both, and stay with the one which fits best your needs and which you do like the most.
:)
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
What OS are you on?
If you're on Windows, then you choose wxMSW :)
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
I am so sorry dude but i dont understand that guide :( I am so sad :( Can you explain me with some easyer guide ?
In fact, that link describes everything step by step, so I don't know whether easier is possible.
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
There's this wonderfull site online recently called 'google'. Here's how to use it. The first link is what you want. :icon_wink:
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403