Share via


Add-in Connection and Disconnection

When the IDE starts, it automatically loads all add-ins checked with Add-ins and Macro Files. The IDE loads each add-in by calling the IDSAddIn::OnConnection method exposed by the add-in PBAddIn Object. The IApplication::SetAddInInfo method of the IApplication Interface provides the IDE with essential information such as a handle to the add-in DLL and bitmap resources identifiers for the toolbar. The OnConnection method also makes the commands exposed by the add-in available for the user to carry out, and it connects the add-in to any specified events if the add-in contains event handlers.

When the IDE quits, it unloads each add-in by calling the IDSAddIn::OnDisconnection method exposed by the add-in PBAddIn object.

See Also

Add-in Implementation | Connecting Add-ins to the Development Environment | Disconnecting Add-ins from the Development Environment

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.