作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我使用 WTL - Visual Studio 9 中的对话框向导创建一个普通对话框后,我包含了 <atltime.h>
header ,我得到这个:
Error 2 error C2039: 'CString' : is not a member of 'WTL' ...\wtl\include\atlctrls.h 5060 TASKSCHEDULER
Error 3 error C2039: 'CString' : is not a member of 'WTL' ...\wtl\include\atlctrls.h 969 TASKSCHEDULER
Error 4 error C2039: 'CString' : is not a member of 'WTL' ...\wtl\include\atldlgs.h 535 TASKSCHEDULER
Error 5 error C2039: 'CString' : is not a member of 'WTL' ...\wtl\include\atldlgs.h 627 TASKSCHEDULER
Error 6 error C2039: 'CString' : is not a member of 'WTL' ...\wtl\include\atldlgs.h
697 TASKSCHEDULER
最佳答案
我遇到过类似的情况,有两件事帮助我摆脱了错误,也许对其他人有帮助。
atlapp.h
之上包含 atlstr.h
_WTL_NO_CSTRING
关于c++ - 将 atltime header 包含到 WTL 项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13689699/
在我使用 WTL - Visual Studio 9 中的对话框向导创建一个普通对话框后,我包含了 header ,我得到这个: Error 2 error C2039: 'CString'
我是一名优秀的程序员,十分优秀!