因程序中使用了afx.h关于MFC相关的进程,所以需要在工程中选择“在共享DLL中使用MFC”才不会报如下错误:
错误 1 error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include\afx.h 24 1 EIPWelder