NXP

开源DirectUI库学习1

2019-07-12 12:35发布

 安装vs开发环境

1. 安装visual studio 2010 2. 安装Visual Assist X V10.7.1929.0 官方原版将下载补丁VA_X.dll复制到以下的路径即可。 XP: C:Documents and SettingszhangqiLocal SettingsApplication DataMicrosoftVisualStudio10.0ExtensionsWhole Tomato SoftwareVisual Assist X*** win7 C:UsersWin7的登录帐户名AppDataLocalMicrosoftVisualStudio10.0ExtensionsWhole Tomato SoftwareVisual Assist X***

 vs2010编译duilib工程问题

1. “IDispatchEx”: 重定义;不同的基类型 点击打开链接 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 */ 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")