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



The information in this article applies to:

  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ .NET (2002)

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.

MORE INFORMATION

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.

Modification Type:MinorLast Reviewed:1/5/2006
Keywords:kbResource kbImport kbUnicode kbIDEProject kbBitmap kbhtml kbide kbIcon kbCursor kbbug KB823932 kbAudDeveloper