Is There a way to create a GUI in C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2006
Posts: 11
Reputation: vikter is an unknown quantity at this point 
Solved Threads: 0
vikter vikter is offline Offline
Newbie Poster

Is There a way to create a GUI in C++

 
0
  #1
May 2nd, 2007
Hi,
Is there a way one can create a Graphical user interface in C++, and include things like Radio buttons,Check Boxes e.t.c in one's application.

Thanks alot
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Is There a way to create a GUI in C++

 
0
  #2
May 2nd, 2007
Yes, there is. Not with just built in C++, as far as I know, but using Qt4, as I do, you can. You can also use Tcl/Tk with C++ (I think...). With the book "C++ GUI Programming With Qt4" by Jasmin Blanchette and Mark Summerfield.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,348
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1462
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Is There a way to create a GUI in C++

 
0
  #3
May 2nd, 2007
If on the MS-Windows os you can use win32 api functions or any of several other gui libraries such as xwindows. All of these require solid underatanding of C or C++ languages.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,066
Reputation: Sturm is on a distinguished road 
Solved Threads: 24
Sturm's Avatar
Sturm Sturm is offline Offline
Veteran Poster

Re: Is There a way to create a GUI in C++

 
0
  #4
May 2nd, 2007
If you run a *nix you can use GTK or QT.
"Hey ass, don't hijack my thread. This is serious." -JoshSCH
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 202
Reputation: n.aggel is an unknown quantity at this point 
Solved Threads: 11
n.aggel's Avatar
n.aggel n.aggel is offline Offline
Posting Whiz in Training

Re: Is There a way to create a GUI in C++

 
0
  #5
May 2nd, 2007
Originally Posted by linux View Post
Yes, there is. Not with just built in C++, as far as I know, but using Qt4, as I do, you can. You can also use Tcl/Tk with C++ (I think...). With the book "C++ GUI Programming With Qt4" by Jasmin Blanchette and Mark Summerfield.
Excellent book, plus with QT you will be able to write code that will compile both on windows and on linux!!{also QT is a great framework you can find inside functions that will do anything!!}

Originally Posted by Ancient Dragon View Post
If on the MS-Windows os you can use win32 api functions or any of several other gui libraries such as xwindows. All of these require solid underatanding of C or C++ languages.
Also you can try VC++{ with mfc} and VC++.NET /CLI {with winforms}
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 254
Reputation: jan1024188 is an unknown quantity at this point 
Solved Threads: 2
jan1024188's Avatar
jan1024188 jan1024188 is offline Offline
Posting Whiz in Training

Re: Is There a way to create a GUI in C++

 
0
  #6
May 2nd, 2007
My answer is MANY.

There are many API's for making GUI applications.

1. WinAPI:
Its a great API and the best solution if you are windows programmer. First code will look a bit difficult, but later (after making few apps.) you will see its not so rusty. I like it, because you can do almost everything with it (in windows). The only bad thing is, that you cannot make applications for Linux with it.
Tutorial:
http://www.winprog.org/tutorial/index.html
2. Qt4 / Qt3
This is a nice API, for making GUI applications. It works under Linux, Windows and Mac OS X. Its really easy to learn and use. But, until you dont buy licenced version, you will need to add tons of -dll s, to run your application. Qt compiler doesnt work in Vista. And, Qt4 API has a bit complicated way, to get buttons to work, if button holds some more complicated operations(actually you have to make your own SLOT's).
Tutorial:
http://sector.ynet.sk/qt4-tutorial/
http://doc.trolltech.com/4.2/examples.html
3.GTK+
Sorry, but I never tryed it, so Google might help you.
Last edited by jan1024188; May 2nd, 2007 at 2:48 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 6
Reputation: stupido is an unknown quantity at this point 
Solved Threads: 3
stupido stupido is offline Offline
Newbie Poster

Re: Is There a way to create a GUI in C++

 
0
  #7
May 3rd, 2007
Why use Win32 api? It is C (Microsoft C plus Standard C). For GUI programming in Windows use MFC (Microsoft Foundation Classes) up to Visual C++ 6.0. After that there is .NET 7.0, 7.1 for Visual C++ 2003 that uses WinForm and the real stable C++ .NET is Visual 2005 that uses WinForm (taken from Visual Basic features) for .NET framework 2.0 and above.
Yes, or *NIX you can use GTK/QT/Motif and other third party libraries/frameworks
What?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,603
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 713
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Is There a way to create a GUI in C++

 
0
  #8
May 3rd, 2007
>Why use Win32 api?
Why not?

>It is C (Microsoft C plus Standard C).
A C API can be used by C++ too.

>For GUI programming in Windows use MFC (Microsoft Foundation Classes) up to Visual C++ 6.0.
I agree to a point. MFC helps for the things that MFC handles. But the Win32 API covers a great deal more than MFC, and it's best to know the API itself before using a thin wrapper around it. Otherwise you may be overwhelmed with confusing issues.

>After that there is .NET
Which involves learning the bastardized C++/CLI language. If you're doing .NET, I recommend forgetting about C++ altogether and using C# or VB.NET. The C++/CLI standard is hideous.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC