How Do I Use the MFC ISAPI Classes Without Linking to the MFC DLL?
To avoid linking to the MFC DLL
- Access the project's Property Pages dialog box. See Setting Visual C++ Project Properties for more information.
- In the General property page (Configuration Properties folder), set the Use of MFC property to Use Standard Windows Libraries.
Follow the comments generated by the ISAPI Extension Wizard in your ISAPI PROJECT.CPP file. Generate your own AfxGetResourceHandle function and your own special DllMain by uncommenting the lines in the file.
Don't include headers for MFC classes other than AFXISAPI.H.