使用WTL中的对话框向导创建了一个简单的对话框 - Visual Studio 9后,我添加了<atltime.h>
标题,我得到了这个:
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
答案 0 :(得分:3)
我遇到了类似的情况,有两件事帮我摆脱了错误,可能对别人有帮助。
atlstr.h
atlapp.h
_WTL_NO_CSTRING