gpt4 book ai didi

c++ - 将 atltime header 包含到 WTL 项目时出错

转载 作者:行者123 更新时间:2023-11-30 02:58:23 24 4
gpt4 key购买 nike

在我使用 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

最佳答案

我遇到过类似的情况,有两件事帮助我摆脱了错误,也许对其他人有帮助。

  1. atlapp.h 之上包含 atlstr.h
  2. 定义_WTL_NO_CSTRING

关于c++ - 将 atltime header 包含到 WTL 项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13689699/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com