the definitive book to pick up would be charles petzolds "programming windows"
infamous
Junior Poster in Training
77 posts since Mar 2004
Reputation Points: 47
Solved Threads: 2
If the library is integrated into the API, then you shouldn't have to install it.
...What GUI library are you trying to install, anyways? There are bunches of them: Gtk, Qt, and Motif are examples of GUI libraries-- what's the name of the one you're trying to install?
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
vegaseat
DaniWeb's Hypocrite
5,976 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,416
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.
Ancient Dragon
Retired & Loving It
30,047 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342
Wonderful tutorial, I thank you very much. I've been doing C++ for 2 years now (school) and I've only done logic programming.
Maulth
Junior Poster in Training
65 posts since Mar 2008
Reputation Points: 15
Solved Threads: 6
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.
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
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
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
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..
codeaa
Junior Poster in Training
98 posts since Feb 2008
Reputation Points: 13
Solved Threads: 12