In what window do c++ .exes run?

Hi all, i have considered to learn C++ but before i proceed,i'd like to ask a question :does c++ software run in the CMD console,or in an independent windowbecause i see some "Hello world" sentences executed in those black background windows
Thanks in advance!!
That depends on the type of the application, and is selected as part of build configuration/process.
It's a developer's choice.

A program CAN run in "Console mode" and "Gui mode".

It does not even require an GUI to be there in any way, it can be fully silent to the user and work.
Normally, no but with some other library, yes!

Thanks,
Aceix.
Thanks guys!!Now ive taken a step in c++.I'm interested in the GUI mode EssGeEich said.If i understand clearly that means i can add controls,buttons,textboxes etc like in VB .NET to my software?

@Aceix with what libraries can i customise my .exe?
Last edited on
If you learn the basic c++, you can also learn a graphics library and use in conjuction with c++. Then you can get your GUI window. If you want to lrogramme for windows, then the Win32 API would be a good start, or MFC.

Aceix.
Yeah i would like to program for windows. I'll learn how to use the graphic library and the other apps you mentioned. Thanks for showing me the way and your time, Aceix and all of you!!
Last edited on
For GUI programming, I'm used to use the raw Windows C API (Also called WinAPI, Win32 API...) which should be the faster one, as Windows itself is made in C... I think.

Let me tell you you WILL need some knowledge about C++ first, so think about following a basilar C++ tutorial to get started.
We have a basilar C++ tutorial here: http://www.cplusplus.com/doc/tutorial/

But once you get enough knowledge you will be easily able to create a form with buttons, list boxes, combo boxes and even Hardware-Accellerated, Direct3D windows (which does not force you into creating a game, but hardware rendering is almost always faster than software rendering - And you can also make a back-up software rendering system for older PC's).

C++ literally gives the programmer full control over his program.

Remember:

For Generic C++ code (cin/cout, printf/scanf), post under Beginner.
Once you go WINAPI (once you write #include <windows.h> ), post under Windows.

___________
To see some compilers to begin programming, look here, under
Integrated Development Environments (IDE):

http://www.cplusplus.com/articles/j8hv0pDG/
Last edited on
I googled for tutorials on API, but couldn't find a good one for a beginner. If you would be kind enough, please show me a good tutorial.
I knew i would have to learn C++ so i've started learning
from this site. Full control over software, that's exactly what i want, and im happy i can achieve that in C++.
Thanks for your time and the link
1. http://www.zetcode.com/gui/winapi/ (Requires some knowledge)
2. http://www.winprog.org/tutorial/start.html (Probably easy enough for you)
I read how to create a simple "Hello world" application in zetcode.com and whooaah!! The code was too much for me at this stage, so i tried the second site and yeah its just for me. So i've started learning from there.
Btw which do you recommend i learn first: C++ or API?
C++.

The API requires some knowledge about C++.
(C mainly, of which C++ is a bit of a derivated)

The things you should get to know (at least) are:

Structures
Pointers
Classes (COM programming like D3D...)

Anyways I was expecting you would prefer the second link.
But I didn't put them in any particular order as you can see.
I'm learning C++ as you told me to, i'm making progress, thanks to you and everybody. Im out of questions for now though....
Can't wait to harness the full power of C++.
Cheers!!!
Topic archived. No new replies allowed.