BUG: "Sorry! An error occurred when generating the object."

ID: Q198537


The information in this article applies to:
  • Microsoft Visual C++, 32-bit Editions, version 6.0


SYMPTOMS

The following error message occurs when you follow the steps in the More Information section below using Visual C++ 6.0:

Sorry! An error occurred when generating the object.
Or, when attempting to insert a new ATL object or when manually adding an object from another project into a new ATL project, you may receive the error message:
Sorry! An error occurred when generating the object.


CAUSE

This is a bug in the Visual C++ product.

Or, a project dependency file may not be checked out from the file version control system or the file may be marked as read-only. Typically, a Resource.h or similar file may be marked as read-only.


RESOLUTION

Check whether the dependency files are read-only. If they are, check them out from the file version control system or change the file attribute to read/write.


STATUS

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


MORE INFORMATION

Step to Reproduce the Error

  1. Create a standard MFC AppWizard (EXE) project.


  2. Choose SDI in step one.


  3. Click Finish.


  4. Select the ClassView and right-click the project name classes, bringing up the menu.


  5. Select New ATL Object.


Additional query words:

Keywords : kberrmsg kbwizard kbClassView kbide kbVC600bug kbATL300bug kbGrpMFCATL
Version : winnt:6.0
Platform : winnt
Issue type : kbbug


Last Reviewed: November 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.