Article ID: 311408 - Last Review: June 25, 2003 - Revision: 2.1 FIX: 'Read-Only' Warning When Adding an MFC Class From a Type LibraryThis article was previously published under Q311408 On This PageSYMPTOMS
When you add a COM wrapper class to a Microsoft Foundation Classes (MFC) project by using a type library with the Microsoft Visual Studio .NET Wizard, you may receive an error message if you browse to the type library file instead of using the library that is already registered in the registry. If the type library file has been marked Read-Only on disk and you browse to that type library by using the wizard, you receive the following error message, and adding the class fails:
Cannot save the file. The file exists and is marked Read-Only. Save the file with another file name or to another location.
RESOLUTION
To work around this problem, do any of the following:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Microsoft Visual C++ .NET (2003).
MORE INFORMATIONSteps to Reproduce Behavior
| Article Translations
|
Back to the top
