English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do i makeGUI stuff with c++?

Uhmm im learinng c++ because i saw this game called eternal-lands which supposingly was made by it. However everything i do on dev c++ compiler runs with DOS. How can i make it so it runs with Windows instead? And also so it can show pictures and such. And also if some1 cud mention how to use OpenGl and DirectX i hear good things about them. Id appreciate help.

2006-06-13 12:28:43 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

Instead of creating a "console app..." or something to that effect, select "Win32 App...", but you'd have to learn how to create windows, buttons, etc.

Also, check out http://nehe.gamedev.net for some very nice OpenGL tutorials from beginner in C++ to very advanced stuff.

2006-06-13 12:44:05 · answer #1 · answered by djimeha 1 · 1 0

It's much easier to learn C++ on the command prompt than with dialog boxes and such. A simple program to display the classic "Hello World!" program in C++ is just a matter of a couple of lines to the command prompt:

#include

int main()
{
cout << "Hello, world!";
return 0;
}

But to get the same type of thing with Windows (at least, to do it well) is going to require pages and pages of programming to register window classes, create a window, and respond to user actions. Not that it's impossible, but it's tricky. Many compilers have wizards that can help put some of this user interface overhead together automatically, but there's still a pretty steep learning curve.

For this reason, you may want to stick to a console-mode program for a little while until you're comfortable with the basics of C++. Then, pick up one of many books on writing code for Windows and go from there.

You're a LONG ways from using DirectX if you're just getting started with C++. Don't give up, though. C++ is what nearly all games and software of any significance is written in these days. Just don't expect to be writing flashy windows apps right away.

Try www.codeproject.com as well. Great site.

2006-06-13 20:03:10 · answer #2 · answered by Mantis 6 · 0 0

great place to start learning about game development

www.gamedev.net

2006-06-14 23:52:49 · answer #3 · answered by DiaryOfAMadGameDeveloper 3 · 0 0

fedest.com, questions and answers