Share via


Step 2: Setting Up the Visual Basic Project (Visual Basic 6.0 Tutorial) [Office 2003 SDK Documentation]

Previous   Step 1: Set Up the SimpleSample Document

Use the following steps to set up your SimpleSample smart document project in Microsoft Visual Basic 6.0:

  1. Start Visual Basic 6 and create a new ActiveX dynamic-link library (DLL) project.
  2. Rename your project SimpleSample.

    How?

    • On the Project menu, click Project1 Properties.
    • In the Project Properties dialog box, for Project Name, type SimpleSample, as shown in the following image.
    • Click OK. The Project Explorer displays the new project name, as shown in the following image.
  3. Rename the default module clsActions. This is the module in which you will insert the code for your smart document.

    How?

    • In the Project Explorer, click the default class module, named Class1 (Class1).
    • In the Properties window, change the (Name) property to clsActions, as shown in the following image.
    • Press ENTER. The Project Explorer displays the new project name, as shown in the following image.
  4. Add a reference to the Microsoft Smart Tag 2.0 Type Library.

    How?

    • On the Project menu, click References.

    • In the References dialog box, scroll in the list of Available References to Microsoft Smart Tag 2.0 Type Library and select the check box, as shown in the following image.

      Note  The References dialog box may show Microsoft Smart Tag 1.0 Type Library until you add it, after which it changes to Microsoft Smart Tag 2.0 Type Library. This is a known issue.

    • Click OK.

  5. If prompted, save your project as SimpleSample.vbp and your class module as clsActions.cls.

Next   Step 3: Create the SimpleSample DLL