原文地址:http://blog.csdn.net/x356982611/article/details/30217473
@1:找不到Riched20.lib
用everything等软件搜索下磁盘,找到所在的目录添加到vs的库目录即可,我得是C:Program Files (x86)Microsoft SDKsWindowsv7.1ALib;其他的vs版本可能不一样,自行搜索
@2: “IDispatchEx”: 重定义;不同的基类型 点击打开链接
UIFlash.h行:
- #import "..Utils/Flash11.tlb" raw_interfaces_only, named_guids
- #import "..Utils/Flash11.tlb" raw_interfaces_only, named_guids, rename("IDispatchEx","IMyDispatchEx")
- #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 */
vs2013则需要:
- #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 */
- rename("ICanHandleException", "IMyICanHandleException")
@3:'ICanHandleException' : redefinition; different basic types
在UIWebBrowser.h中:
添加 #include <MsHTML.h>
修改#include "Utils/WebBrowserEventHandler.h"为#include "../Utils/WebBrowserEventHandler.h"