Microsoft KB Archive/823932

= BUG: You cannot import resource files that have Unicode characters in the file names in Visual C++ .NET =

Article ID: 823932

Article Last Modified on 1/5/2006

-

APPLIES TO


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

-





SYMPTOMS
You may not be able to import bitmap, cursor, HTML, or icon files that have Unicode characters in the file names in Visual C++ .NET applications.



CAUSE
When a resource file is imported in the project, Microsoft Visual C++ .NET tries to create an entry in the in .rc file with the resource file name. Because the resource editor either does not support or does not handle Unicode characters, the resource is not imported in the project, and is not listed in the project hierarchy.



WORKAROUND
Modify the file names from Unicode character file names to non-Unicode character file names.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior

 * 1) Create a bitmap file, and then save the file. Make sure to have at least one Unicode character in the file name.
 * 2) Start Microsoft Visual Studio .NET.
 * 3) On the File menu, point to New, and then click Project.
 * 4) Click Visual C++ Projects under Project Types, and then click MFC ActiveX Control, MFC Application, or Win32 Project under Templates.
 * 5) In the Name text box, type BitmapAddDemo.
 * 6) Use the default settings and click Finish.
 * 7) In Resource View, right-click BitmapAddDemo, point to Add, and then click Add Resource.
 * 8) Under Resource Type in the Add Resource dialog box, click Bitmap, and then click Import.
 * 9) Find the bitmap file that you created in step 1. Click the file, and then click Open.

You may notice that the bitmap file is not added to the project. You may notice similar behavior when you try to import icon, cursor, or HTML files.

Keywords: kbbug kbicon kbide kbunicode kbimport kbbitmap kbresource kbhtml kbcursor kbideproject KB823932

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.