BUG: 16-bit Executable Resources Gets Corrupted

Last reviewed: November 26, 1997
Article ID: Q177351
The information in this article applies to:
  • The Resource Editor included with:

        - Microsoft Visual C++, 32-bit Editions, versions 4.0, 4.1, 4.2, 5.0
    

SYMPTOMS

When you open a executable resource of a 16-bit file that has been modified and saved, the following error message displays:

 <filename>
 Cannot open resource
 File is not in the correct format

RESOLUTION

Use the 16-bit Resource Editor, AppStudio, that shipped with Microsoft Visual C++ version 1.52 to edit 16-bit executable and DLL files.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create two copies of a 16-bit executable resource such as the Apstudio.exe file shipped in Microsoft Visual C version 1.52. Change the filename of one of the copies of the file.

  2. Start Developer Studio and open both files in the Resource Editor.

  3. In one of the executable files, delete all the resources by completing the following steps:

    a. Open a resource folder. b. Press Click+SHIFT to select the first and last items in that folder

          which selects all items in the list.
    
    c. Press the Delete key to delete all the items. d. Repeat for the rest of the items in the folder.

  4. Copy the resources from the second file to the first file.

  5. Open one of the resource folders such as the Version folder. Note that the resources are visible. Close the resource folder and save the file.

  6. Open the file again and click the Version folder. The error message displays indicating a corrupt file.

Keywords          : AppStudioIss
Version           : WINNT:4.0,4.1,4.2,5.0
Platform          : winnt
Issue type        : kbbug
Solution Type     : kbpending


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 26, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.