FIX: RW2002 Error From Long Resource Identifier (99389)



The information in this article applies to:

  • The App Studio, when used with:
    • Microsoft Visual C++ 1.0

This article was previously published under Q99389

SYMPTOMS

An attempt to build resources in App Studio fails and App Studio generates the following message:
error RW2002: File not found

CAUSE

If a bitmap, cursor, or icon has an identifier longer than 23 characters, App Studio incorrectly generates the resource file. As the identifier grows beyond 23 characters, it eliminates spaces between the identifier and the resource statement. Eventually, the identifier displaces the resource statement to the right. If the identifier is long enough, it eliminates spaces between the resource statement and the memory option.

STATUS

Microsoft has confirmed this to be a problem in App Studio version 1.0 for Windows and App Studio version 1.1 (32-bit). This problem was corrected in Visual C++ 32-bit Edition version 2.0.

MORE INFORMATION

App Studio generates a line like the following for the IDB_THISISAVERYLONGIDENTIFIER identifier:

IDB_THISISAVERYLONGIDENTIFIERBITMAPDISCARDABLE "filename.bmp"

It should generate the following:

IDB_THISISAVERYLONGIDENTIFIER BITMAP DISCARDABLE "filename.bmp"


Modification Type:MajorLast Reviewed:10/24/2003
Keywords:kbBug kberrmsg kbfix KB99389