Creating a Visual Basic Project

  1. In Microsoft® Visual Basic®, create a Microsoft ActiveX® DLL project and set the name of the project to OlapSampleAddIn. Change the name of the publicly exposed class to MyAddIn. (This corresponds to the ClassName registry key value created in the previous section.)
  2. In the Properties window for the class, set Instancing to 5 - MultiUse.
  3. Add OLAP Add-In Manager to the project references. (You must have previously installed Microsoft SQL Server OLAP Services before this reference is available.)
  4. Add a form to the project named SampleForm with a command button named cmdClose. Add the following code to the Form class:

    Public Index As Integer

    Private Sub cmdClose_Click()

      Me.Hide

    End Sub

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.