VS编译duilib项目时候的错误解决方法整理

1. 找不到Riched20.lib

VS2013编译duilibv1.1,“找不到Riched20.lib”的问题
http://blog.csdn.net/tg2003/article/details/44841605

2. “IDispatchEx”: 重定义;不同的基类型
3. ‘ICanHandleException’ : redefinition; different basic types

修改UIFlash.h,将如下代码:

#import "..\Utils/Flash11.tlb" raw_interfaces_only, named_guids

修改为:

#import "..\Utils/Flash11.tlb" raw_interfaces_only, named_guids, rename("IDispatchEx","IMyDispatchEx") rename("ICanHandleException", "IMyICanHandleException")

4. ResourceView.cpp(91): error C3861: “CanAdjustLayout”: 找不到标识符
注释掉如4行下代码:

if (CanAdjustLayout())
{
    m_wndResourceView.SetWindowPos(NULL, 1, 1, cx - 2, cy - 2, SWP_NOACTIVATE | SWP_NOZORDER);
}

参考文章:
VS编译duilib项目时候的错误解决方法整理
http://blog.csdn.net/x356982611/article/details/30217473

你可能感兴趣的:(VS编译duilib项目时候的错误解决方法整理)