| | |
How do I make a GUI in C++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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.
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!
•
•
Join Date: Nov 2007
Posts: 4
Reputation:
Solved Threads: 1
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
The create a source file to test this out here is the code make the name Test.cs
Yeah then you have to compile it so Open a Command Prompt window and do this
Wallah there you go man you see how easy you should try it..
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
C++ Syntax (Toggle Plain Text)
path C:/WINDOWS/;C:/WINDOWS/System32;C:WINDOWS/Microsoft.NET/Framework/[Version 2] cls
The create a source file to test this out here is the code make the name Test.cs
C++ Syntax (Toggle Plain Text)
using System; using System.Windows.Forms; class Test { static Form frm1; public static void Main(String[]Args) { frm1 = new Form(); frm1.Text = "Test Window"; frm1.Show(); MessageBox.Show("This is my first C# Program and Window"); Application.Run(); } }
Yeah then you have to compile it so Open a Command Prompt window and do this
C++ Syntax (Toggle Plain Text)
cd Desktop CS csc /t:winexe /r:System.Windows.Forms.dll Test.cs 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.
•
•
Join Date: Jan 2008
Posts: 23
Reputation:
Solved Threads: 1
•
•
•
•
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).
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.
•
•
Join Date: Feb 2008
Posts: 98
Reputation:
Solved Threads: 12
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.
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.
•
•
•
•
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
C++ Syntax (Toggle Plain Text)
path C:/WINDOWS/;C:/WINDOWS/System32;C:WINDOWS/Microsoft.NET/Framework/[Version 2] cls
The create a source file to test this out here is the code make the name Test.cs
C++ Syntax (Toggle Plain Text)
using System; using System.Windows.Forms; class Test { static Form frm1; public static void Main(String[]Args) { frm1 = new Form(); frm1.Text = "Test Window"; frm1.Show(); MessageBox.Show("This is my first C# Program and Window"); Application.Run(); } }
Yeah then you have to compile it so Open a Command Prompt window and do this
C++ Syntax (Toggle Plain Text)
cd Desktop CS csc /t:winexe /r:System.Windows.Forms.dll Test.cs Test
Wallah there you go man you see how easy you should try it..
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Solved Threads: 0
@ 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
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
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
•
•
•
•
@ 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
![]() |
Similar Threads
- how to make gui game (Game Development)
Other Threads in the C++ Forum
- Previous Thread: Notifying server socket that connection has closed - MFC
- Next Thread: c++ help
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






