PART 1 The Microsoft Foundation Class Library Tutorial

Part 1 of the Microsoft Foundation Class Libraries User's Guide contains a tutorial designed to teach you the elements of using the Microsoft Foundation Class Library. Basic techniques for using a class library are explored through a tutorial on the fundamental, non-Windows classes. This tutorial features collection classes, exception handling, and diagnostic facilities. The rest of Part 1 teaches the elements of Windows programming with the Windows classes.

Chapter 1 explains how to prepare for the tutorial and how to build the example programs in the tutorial with NMAKE or Programmer's WorkBench.

Chapter 2 shows how to build a simple DOS phone number database application with collection classes, classes for time and strings, exception handling, and diagnostics.

Chapter 3 shows how to write a simple Windows “Hello, World!” program with the Windows classes.

Chapters 4 through 6 explain more about Windows programming through a more capable Windows version of the phone number database presented in Chapter 2.

Chapter 4 shows how to wrap the phone number data model from Chapter 2 in your own C++ class. Class CDataBase provides a clean interface to the data and simplifies the final Windows program.

Chapter 5 explains how to use dialog objects to put Windows dialog boxes on the screen and interact with the user.

Chapter 6 shows how to write handler functions for the phone book application's menu commands and how to handle mouse and keyboard input.