Programs

The tutorial presents four sample programs to demonstrate many of the classes and facilities of the Microsoft Foundation Class Library:

DMTEST, Chapter 2

This simple, noninteractive DOS program demonstrates the use of collection classes, object serialization, diagnostics, and other features of the Microsoft Foundation Class Library.

HELLO, Chapter 3

This simple Windows program demonstrates the fundamentals of writing a Windows program with the Microsoft Foundation Classes.

PHBOOK, Chapters 4 through 6

This more ambitious Windows program demonstrates more complicated dialog boxes, standard Windows version 3.1 open, save, and print dialogs, Windows menus and menu-handler functions, basic uses of the keyboard and the mouse, and more.

CMDBOOK, Chapter 4

This program parallels PHBOOK but without Windows. It presents a character-based command interface to the data model developed in Chapter 1 and used in PHBOOK. Because of its great similarity to PHBOOK, CMDBOOK is not presented in detail but is provided if you wish to pursue character-based programming with the Microsoft Foundation Class Library and C/C++.