views:

1662

answers:

7

Hey all. Any one have any recommendations for a great MFC book that I can learn? I have background in .NET and C++. Thanks!

+3  A: 

Have a look at the answers to this question.

ChrisN
+2  A: 

I remember reading this one in 2000.
MFC Programming from the Ground Up

Jose Vega
+6  A: 

For a first pass at MFC, even better than a book is the Microsoft Scribble tutorial.

Just like a beginning C programmer starts with a program that prints "Hello world", the Scribble tutorial takes you through the steps needed to draw "Hello world" on the screen using the mouse.

It presents the most basic MFC operations (putting controls in a dialog, responding to GUI events, drawing in OnDraw (), etc) in a very simple and easy-to-understand way.

Still remember running through that, then repeating it a second time to explore all the "further information" links :-D
peterchen
I also started learning MFC with the Scribble tutorial, on VC6. From then on MFC learning was a self-runner. Anyone knows if the Scribble tutorial was updated for the newer Visual Studios?
vividos
+9  A: 

You won't find a more complete book than Jeff Prosise's Programming Windows with MFC. It's the MFC equivalent of Petzold's Programming Windows.

I know of 4 freshmen just out of college, who worked on the Prosise book for about a month and then successfully went live on a CAD application.
Vulcan Eager
Is that book still current??? I remember devouring this in the late 90's, it's awesome (after reading Petzold of course). I haven't touched MFC (Microsoft Fried Chicken) since 2001 (v4.01 I think it was???).
Luke
+3  A: 

A good MFC book is a book that says don't use MFC.

the_drow
Great ansver! There so many better alternatives.
Artyom
+1  A: 

Before understanding MFC, you have to understand the native Win32 API. After you are familiar with C-Programming, the best book to learn Win32 API is "Programming Windows 5th Edition" from Charles Petzold. After undestanding this stuff, you can search a book about MFC....but I know nobody who says, that (s)he is a enthusiastic MFC-Programmer, because it has no benefit.

toby
I totally agree here. Once you learn the native Win32 API you'd find probably the only benefit out of MFC if when it comes to laying out controls in Dialogs... so i do that then open the resource files and pluck out the XY coordinates and place them in my native code
Steve Obbayi
+1  A: 

Programming Windows with MFC by Jeff Prosise does for MFC what Petzold did for Win32. That said, if you know .NET why would you take a backward step to an older API?

Clifford