BUG: Changes are lost when you try to save a read-only resource file (*.rc) in Visual C++ 2005, in Visual C++ .NET 2003, or in Visual C++ .NET 2002 (832186)
The information in this article applies to:
- Microsoft Visual C++ 2005 Express Edition
- Microsoft Visual C++ .NET (2003)
- Microsoft Visual C++ .NET (2002)
Note Microsoft Visual C++ 2005 supports both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native
Microsoft Windows code model.
Note Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. SYMPTOMSWhen you try to save a read-only resource file (*.rc) after you make changes to the resource file, you may not be able to
save the changes that you made and the changes are lost. The symptoms depend on the version of Microsoft Visual Studio .NET or Microsoft Visual Studio 2005 that you have installed, and depend on how you try to save the resource file. After you make changes to the resource file, you use one of the following methods to save the file: Microsoft Visual C++ .NET 2002Note The Save
Resource File Name As option is enabled
only when you switch to non-code tabs in the editor such as the Object
Browser tab or the Start Page tab. In both these cases, you cannot save
the resource file with another name. Microsoft Visual C++ .NET 2003Note
The Save
Resource File Name As option is enabled
only when you switch to non-code tabs in the editor such as the Object
Browser tab or the Start Page tab. In
both these cases you cannot save the changes that you made to the
resource file. NoteResource File
Name is a placeholder for the name of the read-only resource file
that you are trying to save. WORKAROUNDTo work around this bug, use one of the following methods:
Method 1 Manually remove the Read-Only flag on the resource file, and then try to save the resource file from the IDE. Method 2Overwrite the original read-only resource
file by clicking Overwrite in the Save of
Read-Only File dialog box. To do this, do one of the following: - On the
toolbar, click Save, and then click Overwrite in the Save of Read-Only File dialog box.
- On the File menu, click Save
Resource File Name As, and then click Overwrite in the Save of Read-Only File dialog box.
When you click Overwrite, the read-only flag of the resource file is removed. Note Method 2 overwrites your original resource file. Note In these workarounds, Resource File
Name is a placeholder for the name of the read-only resource file
that you are trying to save. STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/29/2005 |
---|
Keywords: | kbDlg kbWindowsForms kbResource kbide kbbug KB832186 kbAudDeveloper |
---|
|