zzchust 2013-12-11 11:48 采纳率: 0%
浏览 1715

关于afxcomctl32.h错误,求助

一共有106个相关错误:
错误 1 error C2504: “CNoTrackObject”: 未定义基类 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 174
错误 2 error C2146: 语法错误: 缺少“;”(在标识符“m_strModuleName”的前面) c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 179
错误 3 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 179
错误 4 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 179
错误 5 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 200
错误 6 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 200
错误 7 error C2065: “m_strModuleName”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 185
错误 8 error C2228: “.GetString”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 185
错误 9 error C2065: “m_strModuleName”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 188
错误 10 error C2228: “.GetString”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 188
错误 11 error C2065: “strModuleName”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 200
错误 12 error C2614: “CDllIsolationWrapperBase”: 非法的成员初始化:“m_strModuleName”不是基或成员 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 202
错误 13 error C2664: “CDllIsolationWrapperBase::CDllIsolationWrapperBase(const int)”: 不能将参数 1 从“const wchar_t [13]”转换为“const int” c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 223
错误 14 error C2227: “->m_hActCtx”的左边必须指向类/结构/联合/泛型类型 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 227
错误 15 error C3861: “AfxGetModuleState”: 找不到标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 227
错误 16 error C3861: “ENSURE”: 找不到标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 227
错误 17 error C2227: “->m_hActCtx”的左边必须指向类/结构/联合/泛型类型 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 228
错误 18 error C3861: “AfxGetModuleState”: 找不到标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 228
错误 19 error C3861: “ENSURE”: 找不到标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 228
错误 20 error C2227: “->m_hActCtx”的左边必须指向类/结构/联合/泛型类型 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 229
错误 21 error C3861: “AfxGetModuleState”: 找不到标识符 c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 229
.......

我是使用VS2010编译的,之前编译时无错,到后来不知怎地就开始出现这个错误了。

现在即使我新建一个基于对话框的工程,编译时同样会出现这个错误。
部分配置如下:

  • 写回答

1条回答

  • CSDN-Ada助手 CSDN-AI 官方账号 2022-12-31 21:59
    关注
    不知道你这个问题是否已经解决, 如果还没有解决的话:

    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘