Microsoft KB Archive/177351

= BUG: 16-bit Executable Resources Gets Corrupted =

Article ID: 177351

Article Last Modified on 12/1/2003

-

APPLIES TO

 The Resource Editor, when used with:  Microsoft Visual C++ 4.0 Standard Edition

 Microsoft Visual C++ 4.1 Subscription

 Microsoft Visual C++ 4.2 Enterprise Edition

 Microsoft Visual C++ 5.0 Enterprise Edition</li></ul>

 Microsoft Visual C++ 6.0 Enterprise Edition</li></ul>

 Microsoft Visual C++ 4.2 Professional Edition</li></ul>

 Microsoft Visual C++ 5.0 Professional Edition</li></ul>

 Microsoft Visual C++ 6.0 Professional Edition</li></ul>

 Microsoft Visual C++ 6.0 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q177351

<div class="symptoms_section">

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

Cannot open resource

File is not in the correct format

<div class="resolution_section">

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.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> 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 file name of one of the copies of the file.</li> Start Developer Studio and open both files in the Resource Editor.</li> In one of the executable files, delete all the resources by completing the following steps:

<ol style="list-style-type: lower-alpha;"> Open a resource folder.</li> Press Click+SHIFT to select the first and last items in that folder which selects all items in the list.</li> Press the Delete key to delete all the items.</li> <li>Repeat for the rest of the items in the folder.</li></ol> </li> <li>Copy the resources from the second file to the first file.</li> <li>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.</li> <li>Open the file again and click the Version folder. The error message displays indicating a corrupt file.</li></ol>

Keywords: kbbug kbnoupdate kbpending KB177351

-

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

© Microsoft Corporation. All rights reserved.