Part 2 of the Microsoft Foundation Class Libraries User's Guide contains a cookbook that provides step-by-step for using the Microsoft Foundation Classes to solve common programming tasks. These recipes typically include example code to illustrate the best way to take advantage of the Microsoft Foundation Class Library's features.
Chapters 7 through 12 show how to use the fundamental general-purpose classes for non-Windows programming tasks, including memory management, date and time, strings, collections, files and serialization, diagnostics, and exception handling.
Chapters 13 through 17 show how to use the Microsoft Foundation Classes that relate to Windows programming tasks such as application design, window and dialog management, graphics operations, and user input.