How to automate tasks by using COM objects in Visual C++ (247035)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q247035 SUMMARY The Developer Studio object model introduced with Visual
C++ 5.0 provides COM objects for automation. The objects are manipulated using
methods, properties, and events associated with the objects. You can automate
tasks in the Visual C++ environment using these objects. This article
provides sample code that utilizes two different approaches to automating
Visual C++. The first method uses #include to include Visual C++ automation
header files and the second method uses #import to import Visual C++ type
libraries. The sample code provided in the "More Information" section
does the following:
- Launches Visual C++.
- Opens a workspace that you have specified on the command
line.
- Enumerates all the projects in the workspace and displays
their names.
- Enumerates all the configurations of individual projects in
the workspace and displays their names.
- Builds all the projects in all their
configurations.
- Displays the active project name.
- Quits Visual C++.
NOTE: The sample code provided in the following sections is not
supported by Microsoft. REFERENCES MSDN Library:
Visual Studio 6.0 Documentation; Visual C++ Documentation; Using Visual C++; Visual C++ User's Guide; Automating Tasks in Visual C++; Developer Studio Objects
For more information, click the following article numbers to view
the articles in the Microsoft Knowledge Base: 200074
FIX: Can't Get IBuildProject Interface from Developer Studio
192912 PRB: MSDev Doesn't Close When COM Reference Count Is Zero
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbinfo kbAutomation kbDevStudio kbhowto kbide kbVCObj KB247035 kbAudDeveloper |
---|
|