Microsoft KB Archive/216851

From BetaArchive Wiki

Article ID: 216851

Article Last Modified on 12/11/2003



APPLIES TO

  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++ 6.0 Standard Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition



This article was previously published under Q216851

SYMPTOMS

The AddConfiguration automation method fails with the following error when called from a Developer Studio macro and the active project is a makefile project:

The configuration could not be added to the project.

STATUS

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 Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

The AddConfiguration also fails when called from a Visual Basic or Visual C++ addin. The returning HRESULT is 0xcccccccc when AddConfiguration succeeds (when a non-makefile project is active) or fails (makefile project is active).

Steps to Reproduce the Behavior

  1. Create and load the following Developer Studio macro:

    Sub AddConfig()
       ActiveProject.AddConfiguration "New Configuration"
    End Sub
  2. Create a Makefile project in a new workspace.
  3. Run the macro "AddConfig".


Keywords: kbbug kbfix kbcustomwizard kbscript kbvcobj kbide kbautomation kbvs600sp3fix KB216851