Microsoft KB Archive/153569

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

Article ID: 153569

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



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.



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.

Additional query words: kbVBp400 kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbCompiler

Keywords: kbhowto KB153569

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.