Article ID: 192912
Article Last Modified on 6/10/2005
#import <devshl.dll> // Create smart pointers for automation.
using namespace DSSharedObjects;
CoInitialize(NULL); // Initialize COM.
IApplicationPtr pApplication;
if (pApplication.CreateInstance(__uuidof(DSSharedObjects::Application))
== S_OK)
{
// Perform automation steps with pApplication.
pApplication->Quit();
}
CoUninitialize();
This Visual Basic code illustrates the use of the Quit method:
Dim msdev As Object
Set msdev = CreateObject("MSDev.Application") ' Create a new instance of
' MSDev.exe.
' Perform automation steps here.
msdev.Quit ' Force MSDev.exe to unload.
Set msdev = Nothing ' De-reference MSDev.exe.
192913 BUG: EnableModeless Causes Events to Fire Late
Visual C++ 5.0 Online Help: Developer Products; Visual C++; Developer
Studio Environment User's Guide; Automating Tasks in Developer Studio;
Developer Studio Objects; Overview: Developer Studio Objects;
Automating Developer Studio Tasks from Other Applications
MSDN Library: Platform SDK; COM and ActiveX Object Services; COM
Visual C++ 6.0 Online Help: Visual C++ Documentation; Using Visual C++;
Visual C++ User's Guide; Automating Task's in Visual C++; Developer
Studio Objects; Overview: Developer Studio Objects; Automating
Developer Studio Tasks from Other Applications
Keywords: kbtshoot kbide kbautomation kbdevstudio kbprb kbfaq KB192912