How do I make a GUI in C++

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

Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: How do I make a GUI in C++

 
0
  #11
May 16th, 2004
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

Re: How do I make a GUI in C++

 
0
  #12
Oct 15th, 2004
I have tried to install the gimp tool-kit before and it did not work, I think i was installing it wrong. How do you do it?
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,109
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 943
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: How do I make a GUI in C++

 
0
  #13
Oct 17th, 2004
Download the BCX system from:

http://www.rjpcomputing.com/programm.../devsuite.html

It's free, creates C or C++ code you can look at and learn from. Super help file and lots of GUI samples. Look at BCX as a preprocessor. I use it all the time, a great learning tool.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 4
Reputation: hax_hp is an unknown quantity at this point 
Solved Threads: 1
hax_hp hax_hp is offline Offline
Newbie Poster

Re: How do I make a GUI in C++

 
0
  #14
Jan 18th, 2008
Dude my advice would be to go to C# instead..C++ is for rough programming..It would help you more if you were aming to program in other platforms like Linux for example..But if you want to program in Windows the best way to fo is C# and the good news is that C# is also supported in platforms like Linux..I believe there is a library that lets you do this. The name is Mono and there is a very easy to learn library to create your gui called gtk-sharp..You can even use XML to create a gui..But anyways if you want to give C# a try do the following..

Go to C:/WINDOWS/Microsoft.NET/Framework/[Find Version 2]
Then find a program named csc.exe (That is a CSharp compiler shipped with .NET Framework)
Create a batch file in your Desktop named CS.bat
Add the following commands to it change the Version number between the brackets

  1. path C:/WINDOWS/;C:/WINDOWS/System32;C:WINDOWS/Microsoft.NET/Framework/[Version 2]
  2. cls

The create a source file to test this out here is the code make the name Test.cs

  1. using System;
  2. using System.Windows.Forms;
  3.  
  4. class Test {
  5.  
  6. static Form frm1;
  7.  
  8. public static void Main(String[]Args)
  9. {
  10. frm1 = new Form();
  11. frm1.Text = "Test Window";
  12. frm1.Show();
  13. MessageBox.Show("This is my first C# Program and Window");
  14. Application.Run();
  15. }
  16. }

Yeah then you have to compile it so Open a Command Prompt window and do this

  1. cd Desktop
  2. CS
  3. csc /t:winexe /r:System.Windows.Forms.dll Test.cs
  4. Test

Wallah there you go man you see how easy you should try it..
Last edited by hax_hp; Jan 18th, 2008 at 9:19 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 23
Reputation: wamuti is an unknown quantity at this point 
Solved Threads: 1
wamuti wamuti is offline Offline
Newbie Poster

Re: How do I make a GUI in C++

 
0
  #15
Jan 18th, 2008
Originally Posted by Dark_Omen View Post
Hello,
I am new to make programs. So far I can just do logical stuff like math in a dos window. I now want to move on to making actual windows programs. Does anyone know how to make a GUI in C++ for a windows application? Any reading online or in a book that I can look up? And I was also wondering once you have your code and your GUI how to make the code become the program?
Any help would be great,
Thanks
Also try MFC(Microsoft Foundation Classes). It is an encapsulation of Windows API. To make them work just compile, build and execute the ordinary way!. As easy as that(You can even skip compile ).
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,578
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: 1486
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: How do I make a GUI in C++

 
0
  #16
Jan 18th, 2008
Originally Posted by wamuti View Post
Also try MFC(Microsoft Foundation Classes). It is an encapsulation of Windows API. To make them work just compile, build and execute the ordinary way!. As easy as that(You can even skip compile ).
I agree MFC is pretty easy to use, but it isn't free. Neither VC++ 5.0 Express nor VC++ 8.0 Express supports it. If you want to use MFC then you have to buy the Stanrard or better versions for $$$$.

VC++ 6.0 should be scrapped for the newest Express version because of compatability problems.
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: Mar 2008
Posts: 64
Reputation: Maulth is an unknown quantity at this point 
Solved Threads: 5
Maulth Maulth is offline Offline
Junior Poster in Training

Re: How do I make a GUI in C++

 
0
  #17
Mar 6th, 2008
Wonderful tutorial, I thank you very much. I've been doing C++ for 2 years now (school) and I've only done logic programming.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 98
Reputation: codeaa is an unknown quantity at this point 
Solved Threads: 12
codeaa codeaa is offline Offline
Junior Poster in Training

Re: How do I make a GUI in C++

 
0
  #18
Mar 7th, 2008
The guy asked for advice on _C++_ GUI programming. You say "C++ is for rough programming"? What does that mean? C++ is very well suited for GUI programming.

Anyone else interested in C++ GUI programming, look into gtk, Qt, or wxWidgets and there are others.

I know C# and I'm not trying to be critical of it but my advice in evaluating your options when starting a project is to look at portable options and work from there with consideration for the requirements of your project and if you end up choosing C#, that's fine. There is Mono to make C# a bit more portable but there are still issues there. Personally, C# would not be a starting point for me in choosing my options for most of my projects.

You suggest gtk-sharp as an option. You then have gtk in C++ or C# (among others). At this point you should be considering your language by it's suitability to your project.

Originally Posted by hax_hp View Post
Dude my advice would be to go to C# instead..C++ is for rough programming..It would help you more if you were aming to program in other platforms like Linux for example..But if you want to program in Windows the best way to fo is C# and the good news is that C# is also supported in platforms like Linux..I believe there is a library that lets you do this. The name is Mono and there is a very easy to learn library to create your gui called gtk-sharp..You can even use XML to create a gui..But anyways if you want to give C# a try do the following..

Go to C:/WINDOWS/Microsoft.NET/Framework/[Find Version 2]
Then find a program named csc.exe (That is a CSharp compiler shipped with .NET Framework)
Create a batch file in your Desktop named CS.bat
Add the following commands to it change the Version number between the brackets

  1. path C:/WINDOWS/;C:/WINDOWS/System32;C:WINDOWS/Microsoft.NET/Framework/[Version 2]
  2. cls

The create a source file to test this out here is the code make the name Test.cs

  1. using System;
  2. using System.Windows.Forms;
  3.  
  4. class Test {
  5.  
  6. static Form frm1;
  7.  
  8. public static void Main(String[]Args)
  9. {
  10. frm1 = new Form();
  11. frm1.Text = "Test Window";
  12. frm1.Show();
  13. MessageBox.Show("This is my first C# Program and Window");
  14. Application.Run();
  15. }
  16. }

Yeah then you have to compile it so Open a Command Prompt window and do this

  1. cd Desktop
  2. CS
  3. csc /t:winexe /r:System.Windows.Forms.dll Test.cs
  4. Test

Wallah there you go man you see how easy you should try it..
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 1
Reputation: T3chn0logic is an unknown quantity at this point 
Solved Threads: 0
T3chn0logic T3chn0logic is offline Offline
Newbie Poster

Re: How do I make a GUI in C++

 
-1
  #19
Jun 23rd, 2008
@ those who aren't already using any version of Microsoft Visual Studio:

You n00bs... Why do you continue to you use third party compilers? If your even remotely into development, you all need to get Microsoft Visual Studio. If on *nix machines, get WINE, and then get MSVS. MSVS is by far the best development workstation for any developer. And for the love of god, don't f***ing complain about it costing too much money. <snipped URL>
And if your one of those 'ethical' people who are religously banned from downloading illegal torrents, get a job, and use your second paycheck to buy MSVS.

~T3chn0logic
Last edited by Ancient Dragon; Jun 23rd, 2008 at 9:31 pm. Reason: snipped url to illegal downloads site
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1
Reputation: tc2617 is an unknown quantity at this point 
Solved Threads: 0
tc2617 tc2617 is offline Offline
Newbie Poster

Re: How do I make a GUI in C++

 
0
  #20
Jul 8th, 2008
First of all reading the thread has been very nice. I've been trying to avoid working with gui's for quite a while now, but they're tending to catch up to me. Thank you for the link to the tutorial, because it just makes it that much easier to figure this stuff out.

Originally Posted by T3chn0logic View Post
@ those who aren't already using any version of Microsoft Visual Studio:

You n00bs... Why do you continue to you use third party compilers? If your even remotely into development, you all need to get Microsoft Visual Studio. If on *nix machines, get WINE, and then get MSVS. MSVS is by far the best development workstation for any developer. And for the love of god, don't f***ing complain about it costing too much money. <snipped URL>
And if your one of those 'ethical' people who are religously banned from downloading illegal torrents, get a job, and use your second paycheck to buy MSVS.

~T3chn0logic
and T3chn0logic, dude, chill out. Your post and my post here really have no bearing on this thread. But if you will consider this, the only thing that really matters when developing software is how you or your client wants it to run. Microsoft products are not the end all solutions for development. If you really consider what you are using for programming, then using something like MSVS, Eclipse, Scite, Dev-C++, Vi, Emacs, or Jed are just tools. None of these programs are final solutions for development platforms for all people. They are simply different programs that different people find effective to use. Sure MSVS has a proprietary compiler, but it depends on the program's intention and the programmer as to which compiler is a good choice.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC