最新版Duilib在VS2012下编译错误的解决方法
发布日期:2021-09-08 01:45:15 浏览次数:27 分类:技术文章

本文共 2536 字,大约阅读时间需要 8 分钟。

        svn了好几次最新版本的项目源代码, 在VS2012下编译老是出错, 改了后没记录, 结果又忘记, 所以在此记录下.

       这个问题很普遍, 非常多的人遇到.

      至于其它的示例Demo的错误则简单修改项目属性即可.

 

       好了,错误描述就像下面这样:

1>------ Build started: Project: DuiLib, Configuration: UnicodeDebug Win32 ------

1>  StdAfx.cpp
1>c:\users\yangtao\desktop\new folder\duilib\Control/UIFlash.h(10): warning C4192: automatically excluding 'IServiceProvider' while importing type library '..\Utils/Flash11.tlb'
1>  UIWebBrowser.cpp
1>c:\program files\windows kits\8.0\include\um\dispex.h(228): error C2371: 'IDispatchEx' : redefinition; different basic types
1>          c:\program files\windows kits\8.0\include\um\dispex.h(45) : see declaration of 'IDispatchEx'
1>c:\program files\windows kits\8.0\include\um\dispex.h(455): error C2872: 'IDispatchEx' : ambiguous symbol
1>          could be 'c:\program files\windows kits\8.0\include\um\dispex.h(228) : IDispatchEx'
1>          or       'c:\users\yangtao\desktop\new folder\duilib\build\debug_u\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
1>c:\program files\windows kits\8.0\include\um\dispex.h(791): error C2371: 'ICanHandleException' : redefinition; different basic types
1>          c:\program files\windows kits\8.0\include\um\dispex.h(73) : see declaration of 'ICanHandleException'
1>c:\program files\windows kits\8.0\include\um\dispex.h(977): error C2872: 'IDispatchEx' : ambiguous symbol
1>          could be 'c:\program files\windows kits\8.0\include\um\dispex.h(228) : IDispatchEx'
1>          or       'c:\users\yangtao\desktop\new folder\duilib\build\debug_u\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
1>c:\program files\windows kits\8.0\include\um\dispex.h(995): error C2872: 'IDispatchEx' : ambiguous symbol
1>          could be 'c:\program files\windows kits\8.0\include\um\dispex.h(228) : IDispatchEx'
1>          or       'c:\users\yangtao\desktop\new folder\duilib\build\debug_u\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
1>C:\Program Files\Windows Kits\8.0\Include\um\mshtml.h(9754): error C2872: 'IDispatchEx' : ambiguous symbol
1>          could be 'c:\program files\windows kits\8.0\include\um\dispex.h(228) : IDispatchEx'
1>          or       'c:\users\yangtao\desktop\new folder\duilib\build\debug_u\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
1>C:\Program Files\Windows Kits\8.0\Include\um\mshtml.h(9778): error C2872: 'IDispatchEx' : ambiguous symbol
1>          could be 'c:\program files\windows kits\8.0\include\um\dispex.h(228) : IDispatchEx'
1>          or       'c:\users\yangtao\desktop\new folder\duilib\build\debug_u\flash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'

 

解决方案:

修改UIWebBrowser.cpp和UIWebBrowser.h:

修改前:

修改后:

 

女孩不哭 @ cnblogs.com/memset @ 2014-05-11

转载地址:https://blog.csdn.net/weixin_34310369/article/details/85626200 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:半小时快速了解redis,基于ubuntu 12.04 + redis 2.8.9
下一篇:来自星星的你,我要代表月亮消灭你一

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2023年06月03日 20时49分29秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

最新文章

抽象,密封,多态和继承的例子 2019-09-06 22:51:00
登录SQL注入 2019-09-06 22:50:59
MVC运行机制 2019-09-06 22:50:59
JObject对json的操作 2019-09-06 22:50:58
MVC中的Startup.Auth.cs、BundleConfig.cs、FilterConfig.cs和RouteConfig.cs 2019-09-06 22:50:58
"ApplicationDbContext"(泛指之类的数据库上下文模型)上下文的模型已在数据库创建后发生更改。请考虑使用 Code First 迁移更新数据库。... 2019-09-06 22:50:58
C#.NET的微信功能开发学习 2019-09-06 22:50:57
本地Fiddler传递XML格式数据,调试微信功能。 2019-09-06 22:50:57
ObjectStateManager 中已存在具有同一键的对象。ObjectStateManager 无法跟踪具有相同键的多个对象。... 2019-09-06 22:50:56
VS2013使用EF与mysql数据库. 2019-09-06 22:50:56
B/S和C/S的区别。 2019-09-06 22:50:55
MVC写在Model文件夹下,登录注册等页面定义的变量规则,不会被更新实体模型删除... 2019-09-06 22:50:54
手动新建MVC控制器和视图,以及数据显示的问题 2019-09-06 22:50:54
C#Stopwatch的使用,性能测试 2019-09-06 22:50:53
sql的ExecuteScalar(),ExecuteNonQuery() 2019-09-06 22:50:53
消息 245,级别 16,状态 1,第 1 行 在将 varchar 值 '2,8' 转换成数据类型 int 时失败。... 2019-09-06 22:50:52
HTML5 中的新特性: 2019-09-06 22:50:52
C#log4net的使用 2019-09-06 22:50:51
C#虚方法和抽象方法的区别 2019-09-06 22:50:51
MVC:页面提交JQ动态生成的输入框的值得解决方案: 2019-09-06 22:50:50