Book: Learn the MFC C++ Classes
Publisher: Wordware Publishing
It is not necessary to learn the Windows API in order to begin using theMicrosoft Foundation Class (MFC) Library of C++ classes; you do not evenhave to know more than a few basic C++ concepts in order to begin. I havebeen teaching extension classes through the University of California, Berkeley,since 1993. My students have ranged from expert to beginning Windowsprogrammers. As an MFC teacher, I had to design a system that addressed the“common denominator” in the class, since so many of my students were putonto MFC projects and expected to “ramp up” in a matter of weeks, despitewhatever their previous experience may have been. With the help of inputfrom my students, I developed my simple one-idea-at-a-time approach to theMFC Library. I start with the most fundamental concept that a student needs toknow and show the student how to master that one concept only. Then, I addthe next concept. When exposed to a steady progression of clear ideas andexercises, my students have been able to truly master the fundamental conceptsof MFC. This approach has worked for them, and I am sure that it will workfor you.This book works well for the beginning or expert programmer who wishes tostart programming a Windows application using MFC. A working knowledgeof C is required. Because it is helpful to know some C++, Appendix Cillustrates all the C++ concepts that you need to know for the examples in thisbook. I recommend that you review this appendix before delving into thisbook.If you are a beginner, you will start at the beginning with a simple programthat creates a window. With each additional chapter, you learn how to add newfeatures. Small example programs are used for the first half of the book. Forthese small example programs, you generate all of the code yourself; you donot need to use compiler tools, such as AppWizard, to generate starter code. Inlater chapters, you migrate to using a compiler tool that generates starter codeand learn how to add your application’s code to the starter code.If you already have some familiarity with MFC, this book will help you to fillin “gaps,” such as learning how to code without using a compiler tool togenerate starter code. If you have been coding with the tools, this book willhelp you to understand the “bones” of the code, without the extraneous lines oftool-generated code that can often obscure the logic of a program. Once youknow the bones, you can enjoy a greater understanding and confidence in whatyou can add and delete in order to make the application your own.