FIX: AddConfiguration Method Fails for Makefile ProjectsID: Q216851
|
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.
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
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).
Sub AddConfig()
ActiveProject.AddConfiguration "New Configuration"
End Sub
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