Article ID: 311408 - View products that this article applies to.
This article was previously published under Q311408
This article has been archived. It is offered "as is" and will no longer be updated.
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.
To work around this problem, do any of the following:
Microsoft 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).
Steps to Reproduce Behavior
Contact us for more help
Connect with Answer Desk for expert help.