项目-》属性-》配置属性-》C/C++/预处理器,去掉预处理器定义中的_AFXDLL and _USRDLL 即可。 来源:http://blog.sina.com.cn/s/blog_6276232c0100k5fv.html