MFC Please #define _AFXDLL or do not use /MD的解决方法

时间:2022-11-09 19:48:06

Solution Configurations: Debug 解决方案

在VS2010里的解决方案资源管理器中,右击项目选择属性,在常规选项中,将右边项目默认值里的MFC的使用,由 使用标准windows库改为 在共享DLL中使用MFC

Solution Configurations: Release解决方案

右击项目选择属性--》Code Generation --》Runtim Libray  改为Multi-threaded(/MT) 就可以了