zoukankan      html  css  js  c++  java
  • 最新版Duilib在VS2012下编译错误的解决方法

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

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

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

     

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

    1>------ Build started: Project: DuiLib, Configuration: UnicodeDebug Win32 ------
    1>  StdAfx.cpp
    1>c:usersyangtaodesktop ew folderduilibControl/UIFlash.h(10): warning C4192: automatically excluding 'IServiceProvider' while importing type library '..Utils/Flash11.tlb'
    1>  UIWebBrowser.cpp
    1>c:program fileswindows kits8.0includeumdispex.h(228): error C2371: 'IDispatchEx' : redefinition; different basic types
    1>          c:program fileswindows kits8.0includeumdispex.h(45) : see declaration of 'IDispatchEx'
    1>c:program fileswindows kits8.0includeumdispex.h(455): error C2872: 'IDispatchEx' : ambiguous symbol
    1>          could be 'c:program fileswindows kits8.0includeumdispex.h(228) : IDispatchEx'
    1>          or       'c:usersyangtaodesktop ew folderduilibuilddebug_uflash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
    1>c:program fileswindows kits8.0includeumdispex.h(791): error C2371: 'ICanHandleException' : redefinition; different basic types
    1>          c:program fileswindows kits8.0includeumdispex.h(73) : see declaration of 'ICanHandleException'
    1>c:program fileswindows kits8.0includeumdispex.h(977): error C2872: 'IDispatchEx' : ambiguous symbol
    1>          could be 'c:program fileswindows kits8.0includeumdispex.h(228) : IDispatchEx'
    1>          or       'c:usersyangtaodesktop ew folderduilibuilddebug_uflash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
    1>c:program fileswindows kits8.0includeumdispex.h(995): error C2872: 'IDispatchEx' : ambiguous symbol
    1>          could be 'c:program fileswindows kits8.0includeumdispex.h(228) : IDispatchEx'
    1>          or       'c:usersyangtaodesktop ew folderduilibuilddebug_uflash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
    1>C:Program FilesWindows Kits8.0Includeummshtml.h(9754): error C2872: 'IDispatchEx' : ambiguous symbol
    1>          could be 'c:program fileswindows kits8.0includeumdispex.h(228) : IDispatchEx'
    1>          or       'c:usersyangtaodesktop ew folderduilibuilddebug_uflash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'
    1>C:Program FilesWindows Kits8.0Includeummshtml.h(9778): error C2872: 'IDispatchEx' : ambiguous symbol
    1>          could be 'c:program fileswindows kits8.0includeumdispex.h(228) : IDispatchEx'
    1>          or       'c:usersyangtaodesktop ew folderduilibuilddebug_uflash11.tlh(297) : ShockwaveFlashObjects::IDispatchEx'

    Duilib编译出错

     

    解决方案:

    修改UIWebBrowser.cpp和UIWebBrowser.h:

    修改前:

    修改前

    修改后:

    修改后

     

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

  • 相关阅读:
    复旦大学高等代数期末考试班级前几名
    复旦高等代数 II(17级)每周一题
    复旦大学2017--2018学年第一学期高等代数I期末考试情况分析
    复旦大学2017--2018学年第一学期(17级)高等代数I期末考试第六大题解答
    复旦大学2017--2018学年第一学期(17级)高等代数I期末考试第七大题解答
    复旦大学2017--2018学年第一学期(17级)高等代数I期末考试第八大题解答
    复旦高等代数 I(17级)每周一题
    复旦大学高等代数考试命题的若干经验
    复旦大学数学学院高等代数历届期中考试大题精选之三(18级)
    复旦大学数学学院转入大数据学院的14级同学对高等代数课程的评价
  • 原文地址:https://www.cnblogs.com/memset/p/Duilib_Error_Compiling_On_VS2012.html
Copyright © 2011-2022 走看看