Notes on the problems encountered when compiling the MFC project and the solutions

Problems Compiling MFC Projects
Severity Code Description Project File Line Suppressed Display Status
Error MSB8042 This project requires the MFC library with Specter mitigations. Install them from the Visual Studio installer (individual components tab) for whatever toolset and architecture you are using.
Solution
After adding the following components
insert image description here
to the plug-in, I encountered a new problem
#error: Please use the /MD switch for _AFXDLL builds
Solution
Change the use of MFC from using MFC in the DLL to using MFC in the static library
insert image description here

Guess you like

Origin blog.csdn.net/sanqiuai/article/details/124181979
Recommended