Share via


How Do I Use the MFC ISAPI Classes Without Linking to the MFC DLL?

OverviewHow Do IFAQDetailsSample

To avoid linking to the MFC DLL

  1. Use the Settings command from the Project menu to edit the settings for your project. On the General tab, select the Don't Use MFC option in the Microsoft Foundation Classes drop-down box.

  2. 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.

  3. Don’t include headers for MFC classes other than AFXISAPI.H.