FIX: AddConfiguration Method Fails for Makefile Projects

ID: Q216851


The information in this article applies to:


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 this to be a bug in the Microsoft products 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:

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

Q194295 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:


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


  4. Run the macro "AddConfig".


Additional query words:


Keywords          : kbservicepack kbAutomation kbide kbScript kbVC600bug kbVCObj kbVS600bug kbCustomWizard kbVS600sp2 kbVS600SP1 kbVS600sp3fix kbGrpDSTools 
Version           : WINDOWS:6.0; winnt:6.0
Platform          : WINDOWS winnt 
Issue type        : kbbug 

Last Reviewed: May 19, 1999