Click to See Complete Forum and Search --> : C++ reference


Cerf
03-23-2003, 10:26 PM
Yo yo yo,

I'm looking for a good C++ referance guide.

I've read through some tutorials so I understand C++ when useing it in command line. Seeing some examples in win32, and I've seen some functions such as DrawText() and CreateWindow(). I was wondering if someone knew a good function referance that contained things like this. (Assuming you people understood my questions)

truls
03-24-2003, 03:24 AM
Now I wonder why they call this site justlinux????

win32 is off topic here, but since I don't want you to leave all bitter I'll give you this:

What you are looking for is called an API(Application Programming Interface, methinks). Since it's win32, you'll be looking for "win32 API". Use google if you want it for free, or you can search for it at amazon, in which case you'll probably find a book called "windows 2000 API superbible" which is what you'll want.

But, once again, this website is about linux - not windows.

Cerf
03-24-2003, 05:33 PM
I think win32 was the wrong word. I probably ment something with a GUI, anyways doesn't windows stuff work in Linux too, when compiled properly??

Is DrawText() and CreateWindow() apart of this API, and if not what are they apart of??

bwkaz
03-24-2003, 06:39 PM
CreateWindow, for one, is a part of the Win32 API. No, it will not work in Linux, unless you compile against Winelib -- but then, IMHO it's much, much better to actually learn a cross-platform GUI toolkit than program for any specific API.

I've never heard of DrawText, but from the capitalization, I'd guess that it, too, is a part of the Win32 API.

For Win32 API questions, there's an online reference at the MSDN site.

Cerf
03-24-2003, 10:31 PM
Originally posted by bwkaz
CreateWindow, for one, is a part of the Win32 API. No, it will not work in Linux, unless you compile against Winelib -- but then, IMHO it's much, much better to actually learn a cross-platform GUI toolkit than program for any specific API.

I've never heard of DrawText, but from the capitalization, I'd guess that it, too, is a part of the Win32 API.

For Win32 API questions, there's an online reference at the MSDN site.

Whats a good cross-platform API, I think that it would be better if I learn one that would work over many OSs. My uncle told me that there is some sort of open IBM one, but he didn't give me a name or any other information

bwkaz
03-24-2003, 10:54 PM
I know wxWindows is cross-platform, but there may not be very many people that use it.

Qt also has Windows and *nix versions, that are supposed to be source-compatible.

Gtk has Windows versions as well.

Or, you learn C++ as a language, forgetting the GUI part, and then use that to learn any toolkit for the target platform. Whatever.

Cerf
03-25-2003, 08:51 PM
Originally posted by bwkaz
I know wxWindows is cross-platform, but there may not be very many people that use it.

Qt also has Windows and *nix versions, that are supposed to be source-compatible.

Gtk has Windows versions as well.

Or, you learn C++ as a language, forgetting the GUI part, and then use that to learn any toolkit for the target platform. Whatever.

So, being new to API, Qt would be the best for me to learn because many people use it and it is cross platform. And is there some sort of online function referance/description for it (that can tell me how to use it) similarly to http://www.php.net/manual/en/function.echo.php ??

And whats a good C++ compiler/editor for Red Hat (is it standard)??

bwkaz
03-25-2003, 09:39 PM
http://doc.trolltech.com

For C++, use g++. Every Linux distro has it. Actually, use the Makefiles that Qt (Designer) generates from your .pro (project) file -- they'll use whatever the system's C++ compiler is.

Cerf
03-25-2003, 09:45 PM
I'm going to try learn it on windows first, for the first little bit beause I'm more used to it. (The compiler, and the basic environment and-what-not)