Microsoft KB Archive/99389

= FIX: RW2002 Error From Long Resource Identifier =

Article ID: 99389

Article Last Modified on 10/24/2003

-

APPLIES TO


 * The App Studio, when used with:
 * Microsoft Visual C++ 1.0 Professional Edition

-



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 &quot;filename.bmp&quot;

It should generate the following:

IDB_THISISAVERYLONGIDENTIFIER BITMAP DISCARDABLE &quot;filename.bmp&quot;

Keywords: kberrmsg kbbug kbfix KB99389

-

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

© Microsoft Corporation. All rights reserved.