PRB: ResourceView Fails to Open Already Loaded .RC File

Last reviewed: July 24, 1997
Article ID: Q168405
The information in this article applies to:
  • Microsoft Visual C++, 32-bit Editions, version 5.0
  • Microsoft Visual Studio 97

SYMPTOMS

The ResourceView may become confused and fail to open a resource file even though the file is already open in the resource editor. Visual Studio may generate an error dialog saying "This file is already open in an editor" and the string "Load Failed" will appear below the bug project's resources. The MORE INFORMATION section below documents how this might occur.

CAUSE

Because the .RC file is already open, this behavior is by design.

RESOLUTION

Close the .RC file already open in the development environment then reopen the resource file for the project.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open Visual Studio and create a new project by selecting File/New and select the Projects tab. Select "Win32 Application" project as the new project. Call this project "BUG" (without the quotes).

  2. Make sure your FileView pane is docked along the left side of Visual Studio, and select the FileView tab.

  3. Create a dialog box by selecting Resource from the Insert menu, and then choose Dialog from the selection dialog.

  4. Select File/Save and save the file as "bug.rc" (without the quotes). Add this file to your project by selecting Project/Add to Project/Files.

  5. Select Project/Add to Project/New.

  6. From the dialog, create an MFC AppWizard (dll) project called "Test" (without the quotes) and make it a dependency of the BUG project.

  7. Click on the ResourceView tab on your view pane, and click on the "+" in front of "bug resources" to expand the bug project's resources. The error dialog "This file is already open in an editor" appears.


Additional query words: RC ResEdit dlgedit
Keywords : AppStudioIss VWBIss
Version : 5.0 97
Platform : NT WINDOWS
Issue type : kbprb


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: July 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.