error C2787: “LogLevel”: 没有与该对象关联的 GUID

错误 1 error C2787: “LogLevel”: 没有与该对象关联的 GUID h:\office_dcs\trunk\XXXX\debug\msado15.tlh208

错误 2 error C3203: “_com_IIID”: 未专用化的类 模板 不能用作 模板 变量,该变量属于 模板 参数“_IIID”,应为 real 类型h:\office_dcs\trunk\XXXX\debug\msado15.tlh208

错误 3 error C2955: “_com_IIID”: 使用类 模板 需要 模板 参数列表 h:\office_dcs\trunk\XXXX\debug\msado15.tlh 208

错误 4 error C2079: “Errors::GetItem”使用未定义的 class“_com_ptr_t”h:\office_dcs\trunk\XXXX\debug\msado15.tli172

错误 5 error C2955: “_com_ptr_t”: 使用类 模板 需要 模板 参数列表 h:\office_dcs\trunk\XXXX\debug\msado15.tli 176


解决方法类似:

实现IContextMenu出现C2787错误:“IContextMenu”:没有与该对象关联的GUID
From: http://community.csdn.net/expert/Topicview2.asp?id=4853965
A:There are two <comdef.h> header files in VC.NET, one in Vc7/include and the other in Vc7/PlatformSDK/include. The former splits off the smart pointer typedefs into comdefsp.h, and it doesn't include IContextMenu. The latter does. You can try to #include the PlatformSDK header directly, change your INCLUDE path order, or supply the missing typedef yourself


即:改变头文件包含顺序,把ado的处理文件头放在所有包含头文件前面

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值