PDA

View Full Version : Beginning VC++


Adam B
10-09-2006, 10:55 PM
I'm a professional VB6 coder looking to get into VC++6. I'm starting out with MFC and think I finally got the Document/View hierarchy figured out (not something I really had to worry about in VB), however, I'm in search of some nice "beginner going to intermediate" range tutorials. I've looked on Google, but the sites I find are either too advanced or too beginner.

I have the "Sams Teach Yourself VC++ 6 in 24hrs" book, but it's 50+% crap and doesn't explain everything. For example, it didn't mention that you had to size the combo's drop down to actually get it to show up when you run the program. That was an aggravating experience. Now I'm trying my hand at getting a CFormView-based application going (something the book barely mentions) and it's all good except I can't seem to get the MRU that the AppWizard provides working properly. It only stores one file even though it's set to do four. More than likely it's caused by how I'm opening the documents (using GetActiveDocument()), but I haven't figured out how to close the current document/view and open a new one with the selected file. (I will continue searching for this, though.)

The only other VC++ book I had is on 3D games development and of course doesn't use MFC. I don't want to sound like a total newb, but any good sites would be very helpful.

Boinky
10-10-2006, 07:04 PM
http://msdn2.microsoft.com/en-us/visualc/default.aspx

Jiminator
10-10-2006, 07:34 PM
hasn't all that MFC BS become obsolete with visual c++ and the c## crap?

Adam B
10-10-2006, 11:53 PM
@Boinky: Yeah, thanks. :p I do have the MSDN Library and have dug through it, but like I said, I'm coming from VB6, so the architecture/implementation is a bit different than I'm used to. Every day it gets a bit clearer. My MRU problem has been fixed and it was something so simple it's embarrassing.

@jiminathare: Well, MFC is a class of C++, but yeah it's probably becoming obsolete. However, MFC is something I would like to learn because legacy code is something businesses have to deal with all the time, so knowing stuff that has gone obsolete semi-recently can be useful. As an example, I've seen several positions involving migrating VB6 code to VB.NET.

To answer my own question, I found the CodeGugu forums at http://www.codeguru.com/forum/.
Thanks again.

bobthefish
11-11-2006, 11:13 PM
all i have to say is GOOD LUCK!
i took a 2 week crash course on it, and finished a small game, but i still cant code it well. i can understand code when i read it tho.

personally, you may want visual studio .net edition
its waht i use, vb.net is alot more powerful then plain vb.
(no, i did not have to pay for .net/get it illegally, the course i took gave all its students a license and a link where to download it)

Adam B
11-11-2006, 11:46 PM
Thanks.
I did a small Battleship game clone in non-MFC VC++6. It went pretty quickly, actually. I was pretty surprised at how close VB can get when you use API calls and subclassing, so that experience helped make things go a bit quicker.

By the way, this is old news, but Microsoft also has Express Editions for Visual Studio available for free. http://msdn.microsoft.com/vstudio/express/