Home Page (Add-ins) | Overview | How Do I Topics | FAQ | Reference
When Visual C++ shuts down, the environment unloads each add-in by calling the OnDisconnection method. If you use the Developer Studio Add-in Wizard to create an add-in, the wizard automatically creates the code that implements the OnDisconnection method. In this code, the OnDisconnection method is in the CDSAddIn class located in the Dsaddin.cpp file.
The syntax for the OnDisconnection method is:
void OnDisconnection ( VARIANT_BOOL bLastTime )
To disconnect, the add-in does the following: