Symptoms

Consider the following scenario:

  • You create a Microsoft Visual C++ Microsoft Foundation Classes (MFC) application that uses the CRichEditView class in Microsoft Visual Studio 2008.

  • You open the project property dialog box, and then you select the Use Multi-Byte Character Set option in the Character Set list.

  • You build the application, and then you run it.

  • You type multibyte characters in a rich edit control.

  • You open the Replace dialog box, and then you type characters in the Find what and Replace with text boxes.Notes

    • You can press Ctrl+H to open the Replace dialog box.

    • The rich edit control contains the characters that you typed in the Find what text box.

  • You click Replace to replace the characters in the rich edit control with the characters that you typed in the Replace with text box.

In this scenario, the multibyte characters that are in the rich edit control are not replaced by the characters that you typed in the Replace with text box.

Cause

This issue occurs because of a problem in the string-comparison algorithm.

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:

http://support.microsoft.com/contactus/?ws=supportNote In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have Visual Studio 2008 Service Pack 1 (SP1) installed.

Restart requirement

You do not have to restart the computer after you install the hotfix. We recommend that you close all Visual Studio 2008-related components before you install the hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

File name

File version

File size

Date

Time

Platform

Atl90.dll

9.0.30729.6276

416,072

02-Feb-2012

23:45

IA-64

Atl90.dll

9.0.30729.6276

176,456

02-Feb-2012

23:47

x64

Atl90.dll

9.0.30729.6276

159,048

03-Feb-2012

03:26

x86

Mfc90.dll

9.0.30729.6276

5,088,072

02-Feb-2012

23:47

x64

Mfc90.dll

9.0.30729.6276

3,767,624

03-Feb-2012

03:26

x86

Mfc90chs.dll

9.0.30729.6276

35,664

02-Feb-2012

23:47

x64

Mfc90chs.dll

9.0.30729.6276

35,664

03-Feb-2012

03:26

x86

Mfc90cht.dll

9.0.30729.6276

36,688

02-Feb-2012

23:47

x64

Mfc90cht.dll

9.0.30729.6276

36,688

03-Feb-2012

03:26

x86

Mfc90d.dll

9.0.30729.6276

7,423,304

02-Feb-2012

23:47

x64

Mfc90d.dll

9.0.30729.6276

5,937,992

03-Feb-2012

03:26

x86

Mfc90deu.dll

9.0.30729.6276

63,312

02-Feb-2012

23:47

x64

Mfc90deu.dll

9.0.30729.6276

63,312

03-Feb-2012

03:26

x86

Mfc90enu.dll

9.0.30729.6276

53,584

02-Feb-2012

23:47

x64

Mfc90enu.dll

9.0.30729.6276

53,584

03-Feb-2012

03:26

x86

Mfc90esn.dll

9.0.30729.6276

61,776

02-Feb-2012

23:47

x64

Mfc90esn.dll

9.0.30729.6276

61,776

03-Feb-2012

03:26

x86

Mfc90esp.dll

9.0.30729.6276

61,776

02-Feb-2012

23:47

x64

Mfc90esp.dll

9.0.30729.6276

61,776

03-Feb-2012

03:26

x86

Mfc90fra.dll

9.0.30729.6276

62,800

02-Feb-2012

23:47

x64

Mfc90fra.dll

9.0.30729.6276

62,800

03-Feb-2012

03:26

x86

Mfc90ita.dll

9.0.30729.6276

61,264

02-Feb-2012

23:47

x64

Mfc90ita.dll

9.0.30729.6276

61,264

03-Feb-2012

03:26

x86

Mfc90jpn.dll

9.0.30729.6276

43,344

02-Feb-2012

23:47

x64

Mfc90jpn.dll

9.0.30729.6276

43,344

03-Feb-2012

03:26

x86

Mfc90kor.dll

9.0.30729.6276

42,832

02-Feb-2012

23:47

x64

Mfc90kor.dll

9.0.30729.6276

42,832

03-Feb-2012

03:26

x86

Mfc90rus.dll

9.0.30729.6276

59,728

02-Feb-2012

23:47

x64

Mfc90rus.dll

9.0.30729.6276

59,728

03-Feb-2012

03:26

x86

Mfc90u.dll

9.0.30729.6276

5,107,016

02-Feb-2012

23:47

x64

Mfc90u.dll

9.0.30729.6276

3,782,984

03-Feb-2012

03:26

x86

Mfc90ud.dll

9.0.30729.6276

7,469,904

02-Feb-2012

23:47

x64

Mfc90ud.dll

9.0.30729.6276

5,983,056

03-Feb-2012

03:26

x86

Mfcm90.dll

9.0.30729.6276

67,072

02-Feb-2012

23:47

x64

Mfcm90.dll

9.0.30729.6276

59,904

03-Feb-2012

03:27

x86

Mfcm90d.dll

9.0.30729.6276

93,184

02-Feb-2012

23:47

x64

Mfcm90d.dll

9.0.30729.6276

80,896

03-Feb-2012

03:27

x86

Mfcm90u.dll

9.0.30729.6276

67,072

02-Feb-2012

23:47

x64

Mfcm90u.dll

9.0.30729.6276

59,904

03-Feb-2012

03:27

x86

Mfcm90ud.dll

9.0.30729.6276

93,696

02-Feb-2012

23:47

x64

Mfcm90ud.dll

9.0.30729.6276

80,896

03-Feb-2012

03:27

x86

Mfcmifc80u.dll

9.0.30729.6276

14,096

04-Feb-2012

10:41

x86

Microsoft.visualc.stlclr.dll

9.0.30729.6276

48,944

04-Feb-2012

10:41

x86

Msvcm90.dll

9.0.30729.6276

324,096

02-Feb-2012

23:45

IA-64

Msvcm90.dll

9.0.30729.6276

245,760

02-Feb-2012

23:47

x64

Msvcm90.dll

9.0.30729.6276

225,280

03-Feb-2012

03:27

x86

Msvcm90d.dll

9.0.30729.6276

429,568

02-Feb-2012

23:45

IA-64

Msvcm90d.dll

9.0.30729.6276

333,312

02-Feb-2012

23:47

x64

Msvcm90d.dll

9.0.30729.6276

312,832

03-Feb-2012

03:27

x86

Msvcp90.dll

9.0.30729.6276

1,466,192

02-Feb-2012

23:45

IA-64

Msvcp90.dll

9.0.30729.6276

853,328

02-Feb-2012

23:47

x64

Msvcp90.dll

9.0.30729.6276

569,680

03-Feb-2012

03:26

x86

Msvcp90d.dll

9.0.30729.6276

2,515,280

02-Feb-2012

23:45

IA-64

Msvcp90d.dll

9.0.30729.6276

1,120,592

02-Feb-2012

23:47

x64

Msvcp90d.dll

9.0.30729.6276

872,272

03-Feb-2012

03:26

x86

Msvcr90.dll

9.0.30729.6276

1,505,616

02-Feb-2012

23:45

IA-64

Msvcr90.dll

9.0.30729.6276

641,360

02-Feb-2012

23:47

x64

Msvcr90.dll

9.0.30729.6276

653,136

03-Feb-2012

03:26

x86

Msvcr90d.dll

9.0.30729.6276

3,603,280

02-Feb-2012

23:45

IA-64

Msvcr90d.dll

9.0.30729.6276

1,359,184

02-Feb-2012

23:47

x64

Msvcr90d.dll

9.0.30729.6276

1,178,448

03-Feb-2012

03:26

x86

Vcomp90.dll

9.0.30729.6276

141,648

02-Feb-2012

23:45

IA-64

Vcomp90.dll

9.0.30729.6276

56,656

02-Feb-2012

23:47

x64

Vcomp90.dll

9.0.30729.6276

51,024

03-Feb-2012

03:26

x86

Vcomp90d.dll

9.0.30729.6276

316,240

02-Feb-2012

23:45

IA-64

Vcomp90d.dll

9.0.30729.6276

104,784

02-Feb-2012

23:47

x64

Vcomp90d.dll

9.0.30729.6276

88,400

03-Feb-2012

03:26

x86

Vcomp90ui.dll

9.0.30729.6276

11,536

04-Feb-2012

10:41

x86

Vcredist_ia64.exe

9.0.30729.5792

4,683,856

03-Feb-2012

23:07

x86

Vcredist_x64.exe

9.0.30729.5792

5,219,912

03-Feb-2012

22:45

x86

Vcredist_x86.exe

9.0.30729.5792

4,508,240

03-Feb-2012

23:21

x86

References

The CRichEditView class provides the functionality of a rich edit control. For more information about the CRichEditView MFC class, visit the following MSDN website:

General information about the CRichEditView MFC class

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.