Microsoft KB Archive/315475

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

Article ID: 315475

Article Last Modified on 4/11/2003

-

APPLIES TO


 * Microsoft Visual C++ .NET 2002 Standard Edition
 * Microsoft Visual C++ .NET 2003 Standard Edition

-



This article was previously published under Q315475



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.



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 &quot;Symptoms&quot; section of this article.

Keywords: kberrmsg kbbug kbnofix KB315475

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.