Article ID: 810448 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
The CString functions Right, Left, and Mid in Microsoft Foundation Classes (MFC) 7.0 work as expected in debug builds. However, they throw Access Violation error messages in the release builds when a negative index is passed.
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem.
To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMSNOTE: 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.
The English version of this fix has the file attributes (or later) 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 tool in Control Panel.
You must rebuild your application after you install this hotfix.
Date Time Version Size File name -------------------------------------------------------- 21-Nov-2002 20:20 7.0.9638.0 1,028,096 Mfc70.dll 21-Nov-2002 19:34 7.0.9638.0 2,068,480 Mfc70d.dll 21-Nov-2002 20:09 7.0.9638.0 1,016,832 Mfc70u.dll 21-Nov-2002 19:36 7.0.9638.0 2,064,896 Mfc70ud.dll 21-Nov-2002 19:35 2,287,020 Mfc70.lib 21-Nov-2002 19:34 3,066,694 Mfc70d.lib 21-Nov-2002 19:40 3,042,324 Mfc70u.lib 21-Nov-2002 19:38 3,978,842 Mfc70ud.lib 21-Nov-2002 19:54 505,780 Mfcs70.lib 21-Nov-2002 19:34 526,954 Mfcs70d.lib 21-Nov-2002 19:54 452,554 Mfcs70u.lib 21-Nov-2002 19:36 468,952 Mfcs70ud.lib 21-Nov-2002 19:30 16,467,902 Nafxcw.lib 21-Nov-2002 19:29 16,598,876 Nafxcwd.lib 21-Nov-2002 19:33 16,743,256 Uafxcw.lib 21-Nov-2002 19:32 17,032,282 Uafxcwd.lib 22-Nov-2002 00:26 887,296 Vc_mfc.msm 11-Nov-2002 22:45 63,284 Cstringt.h
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Contact us for more help
Connect with Answer Desk for expert help.