Microsoft Foundation Class Library Samples Index

Information about the Microsoft Foundation Class Library source code samples is organized as follows:

Batch Building the Samples from the Command Line

Each MFC sample contains a link to download the sample and instructions for building and running the sample in the development environment. Under some circumstances, you might want to build and examine all MFC samples, but to build each one individually in the development environment would be very time-consuming.

To build all of the MFC samples at once, use Mksample.bat from the command line. Mksample.bat is located in the MFC directory, under the Visual C++ Samples directory on the MSDN Library CD.