Necessary Setup

If you chose to install the Microsoft Foundation Class Library when you
installed Microsoft C/C++, you have all of the files and directories you need.
Your PATH, INCLUDE, and LIB environment variables should be set up to compile programs that use the Microsoft Foundation Classes. The paths given below are relative to where you installed Microsoft C/C++. If you installed Microsoft C/C++ into the C700 directory, for example, the INCLUDE path given below is C700\MFC\INCLUDE.

Your INCLUDE variable should include normal C 7.0 includes and the path to the MFC\INCLUDE directory, which contains Microsoft Foundation Class Library include files.

Your LIB variable should include normal C run-time libraries and the path to the MFC\LIB directory, which contains Microsoft Foundation Class Library run-time library files.

Your INCLUDE and LIB paths do not need to be in any particular order. If you write your own makefile for NMAKE, be sure to list the “afx” library appropriate to your chosen memory model first in the list of libraries you link with.