FIX: The Standard C++ Library function wcsxfrm returns an incorrect value if you develop the application in Visual Studio .NET 2002

Article translations Article translations
Article ID: 331014 - View products that this article applies to.
This article was previously published under Q331014
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

If you develop an application that calls the wcsxfrm function in the Standard C++ Library to transform a string that is based on locale-specific information, the result may return an incorrect size for the string.

CAUSE

This problem occurs because the function incorrectly returns the size of an array of bytes instead of the size of an array of wide characters. You may experience this problem if the locale is set to anything other than "C."

RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Micorsoft Visual Studio .NET. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
837234 List of bugs that are fixed in Visual Studio .NET 2002 Service Pack 1

Hotfix information

The English 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 tool in Control Panel.
   Date         Time   Version     Size       File name
   -------------------------------------------------------
   06-Nov-2002	21:59  7.0.9630.0    344,064  Msvcr70.dll
   06-Nov-2002	20:55  7.0.9630.0    536,576  Msvcr70d.dll
   06-Nov-2002	20:48                410,618  Msvcrt.lib
   06-Nov-2002	20:55                420,622  Msvcrtd.lib
   06-Nov-2002	19:48                  4,845  Wcsxfrm.c
   06-Nov-2002	20:53              3,198,228  Libcmtd.lib
   06-Nov-2002	20:46              2,835,412  Libcmt.lib
   06-Nov-2002	20:44              2,634,464  Libc.lib
   06-Nov-2002	20:51              2,950,364  Libcd.lib

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Visual Studio .NET 2002 Service Pack 1.

MORE INFORMATION

For more information about the terminology that is used to describe Microsoft product updates, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 331014 - Last Review: October 26, 2013 - Revision: 2.1
APPLIES TO
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix kbqfe kbvsnetpresp1fix kbvs2002sp1sweep kbvs2002sp1fix kbhotfixserver KB331014

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com