How to start Visual C++ in a fast way

Jun 9, 2014 at 5:00pm
Hello guys,

I have a good experience about C++ console applications and now I'm at the 14th chapter of the book (http://www.stroustrup.com/programming1.html) with all the exercises solved by my own effort.
I know if I wait I can learn the visual C++ from that book but I need to learn the visual part (for creating a small app) on C++ now. What way do you suggest me please?
Is there good tutorials here for that purpose?
Jun 10, 2014 at 4:31am
Isn't there any way!?
Jun 10, 2014 at 5:16am
What do you mean by visual C++? I might be wrong, but all that means to me is using VS as an IDE. If you mean making GUIs, then you will need to install and learn other libraries like Qt or wxWidgets (Stroustrup uses wxWidgets in his books iirc). They are still C++, but are additions and use different syntax sometimes to do the same things.
Jun 10, 2014 at 7:02am
I mean those programs which have graphical interface, like most of the windows apps (or .exe files) that have a window and menus for work with that.

And I mean the console apps by that black and white screen.
Now I what to create a very small app that it has those window and menu for work with.

Could I say my meaning clearly?
Jun 10, 2014 at 7:53am
A bit old, but might be some useful links off this:

http://stackoverflow.com/questions/1186017/how-do-i-build-a-gui-in-c

Have a google of something like "c++ gui programming" as well.
Jun 10, 2014 at 9:18am
Thank you very much. If you yourself give me a suggest for that purpose would it be QT for now?
Jun 10, 2014 at 11:34am
Well, i don't know anything about the more 'modern' gui api's but I use MFC, but only because i've been using it off and on for about 10 years. It's fairly old now but it is still updated.
Also, i don't think it's included in the free version of VS (the 'express' edition), so it might be problematic if you have that version.

I'm not telling you to use MFC, just telling you what I use :)

edit: oops i'm reading your "visual c++" as you saying you're using visual studio.
Last edited on Jun 10, 2014 at 11:36am
Jun 10, 2014 at 11:56am
Yes, I use Visual Studio 2012 as an IDE/compiler for C++. But so far I've used only Win32 console application and very little win32 project from that IDE.

And about the MFC, may you please suggest me a good book to start on that?
Last edited on Jun 10, 2014 at 12:08pm
Jun 10, 2014 at 12:18pm
https://www.youtube.com/watch?v=0GSRFUJrp7A

That's a 5 minute MFC example using 2012. As i said though, i don't think it comes with the free version of visual studio.

As for a book:
http://www.amazon.co.uk/MFC-Internals-Microsoft-Foundation-Architecture/dp/0201407213

But that's quite a bit of money if you are only investigating which GUI library to use.
Jun 10, 2014 at 12:33pm
The publication date of the book is 1996!
Thank you very much for your responses.

Probably I should think more to arrive to that point that which one of MFC or QT I should to choose.
Jun 10, 2014 at 4:27pm
Personally, I like QT along with Creator (the IDE that comes with it). The biggest problem is on Windows, debugging doesn't always work "out of the box". I found it easiest to get the ming version instead of the default, just scroll down to "others".

Here's a series of youtube videos if you want to get a look at how Qt works:
https://www.youtube.com/watch?v=6KtOzh0StTc&list=PL2D1942A4688E9D63
Jun 10, 2014 at 4:34pm
Thank you very much.
I have some major question about Qt and how to use of it. And it's better to make a new thread for this specific issues about Qt.
I'll be very glad if you help me on that.
Jun 10, 2014 at 5:13pm
Those videos I linked should explain most of your questions about using Qt. The documentation is very good also. Although you don't have to, it is generally better to use the Qt version of things like QVector instead of vector, but for the most part regular C++ code works just just fine.
Topic archived. No new replies allowed.