BUG: ResourceView Displays Resource IDs by their Values
ID: Q239881
|
The information in this article applies to:
-
Microsoft Visual C++, 32-bit Editions, versions 5.0, 6.0
SYMPTOMS
The Visual C++ ResourceView tab displays resource IDs by their values instead of by their ID names defined in the resource header file (Resource.h).
CAUSE
Externally referenced resource files, such as an icon, are 0 bytes in size.
RESOLUTION
Examine all files that are referenced by the resource script (.rc file). Look to see if any of these icon, bitmap, and custom resource files are 0 bytes in size. For every 0-bytes-sized file, follow these steps:
- Close the associated project and quit Visual C++.
- Delete the 0-bytes file.
- Create a new file of the same type or copy an existing file of the same type.
- Give the new file the same name as the deleted 0-bytes file.
- Verify that the new file is larger than 0 bytes in size.
- In the project directory, delete the .aps file.
- Reopen the project and verify that the ResourceView tab now displays ID names rather than numbers.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Behavior
- Create a project named ZeroTest using the MFC(EXE) AppWizard. Accept defaults for each step.
- Select the ResourceView.
- Expand the ZeroTest Resources folder and then expand the other folders beneath it. Resources are displayed by their resource ID names.
- Close the workspace.
- Delete the Toolbar.bmp file from the .\ZeroTest\Res folder.
- Create a 0-bytes file called Toolbar.bmp in the same directory.
- Delete the ZeroTest.aps file from the project directory.
- Reopen the workspace.
- Examine the ResourceView again. All resources display numbers rather than IDs. Also, the String Table no longer contains any resource ID's.
Additional query words:
Keywords : kbEditor kbide kbResourceEd kbVC500bug kbVC600bug kbDSupport kbGrpDSTools
Version : winnt:5.0,6.0
Platform : winnt
Issue type : kbbug