Incorrect documentation in the "Using the RichEdit 1.0 control with MFC" Visual Studio .NET Help topic (316375)
The information in this article applies to:
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q316375 SUMMARY The "Using the RichEdit 1.0 control with MFC" topic in the
Microsoft Visual Studio .NET Help documentation incorrectly states the
following:
To use a RichEdit control, you must first call AfxInitRichEdit. In Visual Studio .NET, this function always loads Riched20.dll
(instead of Riched32.dll, as in Visual C++ 6.0).
To use the older
RichEdit 1.0 control, you need to call ::LoadLibrary("RICHED32.DLL") from CWinApp::InitInstance.
You may use the current CRichEditCtrl class with the older RichEdit 1.0 control, but CRichEditCtrl is only designed to support the RichEdit 2.0 control. Because
RichEdit 1.0 and RichEdit 2.0 are very similar, most methods will work;
however, please note there are some differences between the 1.0 and 2.0
controls, so some methods may not work or may work incorrectly.
This should read as follows:
To use a RichEdit control, you must first call AfxInitRichEdit. This function always loads Riched32.dll.
You may use
the current CRichEditCtrl class with the older RichEdit 1.0 control, but CRichEditCtrl is designed to support only the RichEdit 2.0 control. Because
RichEdit 1.0 and RichEdit 2.0 are very similar, most methods will work.
However, please note that there are some differences between the version 1.0
and 2.0 controls, and therefore some methods may not work or may work
incorrectly.
To use the newer RichEdit 2.0 or 3.0 control, you need
to call AfxInitRichEdit2(). To update RichEdit controls in existing Visual C++ applications
to version 2.0, open the .rc file as text, and then change the class name of
each RichEdit control from "RICHEDIT" to "RichEdit20a."
REFERENCES For more information, visit the following Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Minor | Last Reviewed: | 1/11/2006 |
---|
Keywords: | kbdocerr kbprb kbProd2Web kbRichEdit KB316375 kbAudDeveloper |
---|
|