20160531 VS2013编译duilibv1.1,“找不到Riched20.lib”的问题
2016-05-31 13:44
615 查看
1、打开DuiLib工程的属性页,进入“链接器” - “输入”选项界面。
2、删除Debug/Release/UnicodeDebug/UnicodeRelease几个配置中,“附加依赖项”中的“Riched20.lib”(如图1)。
/
3、打开UIRichEdit.cpp定位到如下源代码:
4、将该段代码修改为如下内容:
HINSTANCE richHandle = NULL;
typedef HRESULT (_stdcall *_CTS)(
IUnknown *punkOuter,
ITextHost *pITextHost,
IUnknown **ppUnk) ;
_CTS CTS = NULL;
richHandle = LoadLibraryW(L"Riched20.dll");
if(richHandle == NULL)
exit(0);
else
{
CTS = (_CTS)GetProcAddress(richHandle, "CreateTextServices");
if(NULL == CTS)
exit(0);
}
// Create Text Services component
if(FAILED(CTS(NULL, this, &pUnk)))
goto err;
FreeLibrary(richHandle);
2、删除Debug/Release/UnicodeDebug/UnicodeRelease几个配置中,“附加依赖项”中的“Riched20.lib”(如图1)。
/
3、打开UIRichEdit.cpp定位到如下源代码:
// Create Text Services component if(FAILED(CreateTextServices(NULL, this, &pUnk))) goto err;
4、将该段代码修改为如下内容:
HINSTANCE richHandle = NULL;
typedef HRESULT (_stdcall *_CTS)(
IUnknown *punkOuter,
ITextHost *pITextHost,
IUnknown **ppUnk) ;
_CTS CTS = NULL;
richHandle = LoadLibraryW(L"Riched20.dll");
if(richHandle == NULL)
exit(0);
else
{
CTS = (_CTS)GetProcAddress(richHandle, "CreateTextServices");
if(NULL == CTS)
exit(0);
}
// Create Text Services component
if(FAILED(CTS(NULL, this, &pUnk)))
goto err;
FreeLibrary(richHandle);
相关文章推荐
- STL--queue
- request 参数
- easyUI相关资料整理
- 初探Activity2:添加简单的UI控件
- IQueryable与IEnumberable的区别
- @RequestParam @RequestBody @PathVariable 等参数绑定注解详解
- request
- 实用知识:UIButton 图片在上文字在下
- GUI(GroupLayout 分组布局)
- [GitHub的搬运工]roboguice配置到Android Studio
- 【Arduino官方教程第一辑】示例程序 5-5 Switch和Case条件语句2
- UITableView设置快速索引字体颜色
- 导航栏背景及UItextFile左右图片的设置
- GUI(JMenuBar+JMenu+JMenuItem)
- 101. Unique Paths
- iOS学习应用开发就业课_005:UIView对象
- GUI记事本+切换面板1.1版
- Map循环获取key+value
- Android Volley完全解析(三),定制自己的Request
- Fragment UI与工作分离操作