Microsoft KB Archive/316375

= Incorrect documentation in the &quot;Using the RichEdit 1.0 control with MFC&quot; Visual Studio .NET Help topic =

Article ID: 316375

Article Last Modified on 3/29/2007

-

APPLIES TO


 * Microsoft Visual C++ .NET 2002 Standard Edition
 * Microsoft Visual C++ .NET 2003 Standard Edition

-



This article was previously published under Q316375



SUMMARY
The &quot;Using the RichEdit 1.0 control with MFC&quot; 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(&quot;RICHED32.DLL&quot;) 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 &quot;RICHEDIT&quot; to &quot;RichEdit20a.&quot;

