error C2065: “CString”: 未声明的标识符

来源:互联网 发布:数据挖掘的基本方法 编辑:程序博客网 时间:2024/06/05 20:11

环境:Windows7+VS2010

解决办法: 
添加头文件:

<code class="hljs vala has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;"><span class="hljs-preprocessor" style="color: rgb(68, 68, 68); box-sizing: border-box;">#include <afx.h></span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li></ul>

项目属性》配置属性》常规》MFC的使用》在静态库中使用MFC



转载自

http://blog.csdn.net/testcs_dn/article/details/46284931


0 0
原创粉丝点击