How To Get a Typelib (.TLB) File for a Visual Basic OLE Server (153569)



The information in this article applies to:

  • Microsoft Visual Basic Learning Edition for Windows 5.0
  • Microsoft Visual Basic Learning Edition for Windows 6.0
  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0

This article was previously published under Q153569

SUMMARY

When you create an OLE or ActiveX server using Visual Basic, a separate Type library file (.TLB) is not automatically created. By default, the type library for the OLE server is compiled into the executable or .DLL file. However, if you choose to create "Remote Server Support Files" when you build your server, a TLB file will be generated

NOTE: The ability to create Remote Server Support Files is provided only by the Enterprise versions of Microsoft Visual Basic.

MORE INFORMATION

Visual Basic 4.0

  1. Open the project for your server in Visual Basic.
  2. Click Make EXE File (or Make OLE DLL) on the File menu.
  3. In the Make EXE (or Make OLE DLL) dialog, click Options.
  4. Check "Remote Server Support Files".

Visual Basic 5.0 and 6.0

  1. Open the project for your server in Visual Basic.
  2. Click Properties on the Project menu.
  3. Click the Component tab and check "Remote Server Files" and click OK.
  4. Build your server as usual.

    NOTE: This check box will be enabled only if you are creating an accessible OLE server with your current project; that is, only if you have at least one Class Module in the project whose Public property has been set to True.

Modification Type:MinorLast Reviewed:7/1/2004
Keywords:kbhowto KB153569