如何将_RICHEDIT_VER(riched20.dll)升级到版本3或更高版本

我正在使用microsoft的C ++库WTL10。如果我想在VS19中进行编译,则会收到一条错误消息,提示WTL10需要Richedit版本3或更高版本。

这是 atlctrls.h

中的代码
#if (_RICHEDIT_VER < 0x0300)
    #error WTL10 requires RichEdit version 3 or higher
#endif

但是我进入了 afxwin.h

#define _RICHEDIT_VER 0x0210

我该如何升级?我从来没有手动升级过dll,所以我想在这里询问,我找不到与Google的Richedit帮助。

louislee511 回答:如何将_RICHEDIT_VER(riched20.dll)升级到版本3或更高版本

-------找到了解决方案------

您必须插入

#undef _RICHEDIT_VER

之后

<afxwin.h>

赞:

#include <afxwin.h>         // MFC core and standard components
#undef _RICHEDIT_VER

RICHEDIT.H会将_RICHEDIT_VER定义为最新版本

本文链接:https://www.f2er.com/3138659.html

大家都在问