error C2371: “IDispatchEx”: 重定义;不同的基类型的解决方案
来源:互联网 发布:mac pro 需要买鼠标吗 编辑:程序博客网 时间:2024/05/27 09:47
编译错误如下:f:\duilib\duilib\Control/UIFlash.h(10): warning C4192: 导入类型库“IServiceProvider”时自动排除“..\Utils/Flash11.tlb”1> UIWebBrowser.cpp1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(217): error C2371: “IDispatchEx”: 重定义;不同的基类型1> c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(53) : 参见“IDispatchEx”的声明1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(435): error C2872: “IDispatchEx”: 不明确的符号1> 可能是“c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(217) : IDispatchEx”1> 或 “f:\duilib\duilib\build\debug\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx”1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(869): error C2872: “IDispatchEx”: 不明确的符号1> 可能是“c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(217) : IDispatchEx”1> 或 “f:\duilib\duilib\build\debug\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx”1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(887): error C2872: “IDispatchEx”: 不明确的符号1> 可能是“c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(217) : IDispatchEx”1> 或 “f:\duilib\duilib\build\debug\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx”1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mshtml.h(4715): error C2872: “IDispatchEx”: 不明确的符号1> 可能是“c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(217) : IDispatchEx”1> 或 “f:\duilib\duilib\build\debug\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx”1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mshtml.h(4738): error C2872: “IDispatchEx”: 不明确的符号1> 可能是“c:\program files (x86)\microsoft sdks\windows\v7.0a\include\dispex.h(217) : IDispatchEx”1> 或 “f:\duilib\duilib\build\debug\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx”fix的方法:UIFlash.h行: #import "..\Utils/Flash11.tlb" raw_interfaces_only, named_guids改为: #import "..\Utils/Flash11.tlb" raw_interfaces_only, named_guids, rename("IDispatchEx","IMyDispatchEx")可以解决以上的问题。为了兼容性更好,防止系统flash的插件更新后又有问题,干脆直接导入你自己系统的OCX,于是将这一行最好改为: #import "PROGID:ShockwaveFlash.ShockwaveFlash" \ raw_interfaces_only, /* Don't add raw_ to method names */ \named_guids, /* Named guids and declspecs */ \rename("IDispatchEx","IMyDispatchEx")/* fix conflicting with IDispatchEx ant dispex.h */
转自: http://code.google.com/p/duilib/issues/detail?id=90
- error C2371: “IDispatchEx”: 重定义;不同的基类型的解决方案
- Duilib Demo 编译报错:(error C2371: “IDispatchEx”: 重定义;不同的基类型)
- Duilib Demo 编译报错:(error C2371: “IDispatchEx”: 重定义;不同的基类型)
- Visual Studio 2010 编译Duilib源码报错: error C2371: “IDispatchEx”: 重定义;不同的基类型 解决方法
- error C2371: “pCopyState”: 重定义;不同的基类型
- error C2371 int_fast16_t 重定义不同的基类型
- error C2371: “INT32”: 重定义;不同的基类型
- 【Complier】error C2371: 重定义;不同的基类型
- basetsd.h(72): error C2371: “INT32”: 重定义;不同的基类型
- 重定义;不同的基类型
- VS2008 “重定义;不同的基类型”
- 重定义;不同的基类型
- “DWORD”: 重定义;不同的基类型
- struct 结构体“重定义;不同的基类型”
- C语言重定义不同的基类型
- “BOOLEAN”: 重定义;不同的基类型 ”问题 rpcndr.h(147) : error C2632: “char”后面的“int”非法
- jmorecfg.h文件中出现error C2371: “INT32”: 重定义
- jmorecfg.h文件中出现error C2371: “INT32”: 重定义
- Android--消息机制--handler--getImageFromUrl--网络上获取图片
- centos su命令
- Java 第一课
- 第十四周项目4(拓展1)--字符数组选择排序
- 【1789 Doing Homework again】
- error C2371: “IDispatchEx”: 重定义;不同的基类型的解决方案
- 贪婪算法之背包问题求解 (php 版)
- Group by与having理解
- SGI STL中string的源码解读(2)
- hdu 4114 dp
- 九月十月百度,迅雷,华为,阿里巴巴最新校招笔试面试六十题(11.05)
- SGI STL中string的源码解读(3)
- 解决org.apache.struts2.json.JSONException异常
- 重构读书笔记