This sample demonstrates the minimal hooks needed to create a Visual C++ 6.0 add-in using Visual Basic 5.0 Enterprise edition. This sample should also build in Visual Basic 6.0.
To build the sample
Start Visual Basic 5.0.
Load the project file (addin.vbp) and build the project.
Place the vb5addin.dll in \Microsoft Visual Studio\Common\MSDev98\addins.
To run the sample
Start Visual C++ and click Customize on the Tools menu.
Choose the Add-ins and Macro Files tab, and select the VBAddin Sample in the list box
VB5Addin.dll creates a small toolbar that is visible when you close the Customize dialog box.
Click the VB5Addin button on the newly created toolbar. A dialog box will appear indicating that the Addin is correctly installed and working.