Article ID: 315475 - Last Review: April 11, 2003 - Revision: 1.0

BUG: "A Runtime Error Has Occurred" Error Message When You Add Generic C++ Class to a Make File Project

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
This article was previously published under Q315475

On This Page

Expand all | Collapse all

SYMPTOMS

When you try to add a generic C++ class to a make file project, the operation fails and you receive the following error message:
A Runtime Error has occurred.
Do you wish to Debug
Line: 2454
Error: Object Required

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Create an empty solution.
  2. In the Solution Explorer, select the Solution node.
  3. On the File menu, point to Add Project, and then click New Project.
  4. In the Add New Project Wizard, select a Make File project. Accept the defaults.
  5. In Class View in the Solution Explorer window, select the project that you added in step 4. On the Project menu, click Add Class, and then click Generic C++ class. Complete the fields in the Add Class dialog box, and then click Finish.
You receive the error message described in the "Symptoms" section of this article.

APPLIES TO
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
Keywords: 
kberrmsg kbbug kbnofix KB315475