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



我正在使用Microsoft的C++库WTL10。如果我想在VS19中编译它,我会得到一个错误,说WTL10要求Richedit版本3或更高版本。

这是atctrls.h的代码

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

但我进入了afxwin.h:

#define _RICHEDIT_VER 0x0210

如何升级?我从未手动升级过dll,所以我想在这里询问,但我找不到谷歌richedit的帮助。

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

你必须插入

#undef _RICHEDIT_VER

之后

<afxwin.h>

像这样:

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

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

相关内容

最新更新