Results 1 to 3 of 3

Thread: [RESOLVED] TLB Files

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Resolved [RESOLVED] TLB Files

    What is the advantage of creating and using a tlb file?

    I have seen some use of tlb file such as "Microsoft HTML Object Library". What are some of the other commonly use tlb files?
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: TLB Files

    TLB files are primarily used to hold type information externally to a DLL. Some kinds of COM libraries were not originally meant to hold the sorts of information a VB program would normally use for linkage, and so later TLBs were created to "bolt on" this functionality.

    TLBs are also used to define abstract interfaces. The sorts of things you'd use a VB Implements keyword with.

    Another use is redirection. In a system with MDAC 2.8 installed there is only one ADO library. What appears as older versions when you go to add a reference are TLBs that provide the old interfaces but point to the sole ADO library on the system.

    Thus many people labor under the impression they have several versions of ADO installed, when they actually only have just the one. The extra TLBs allow you to develop against the older interfaces, and by choosing the lowest version your program needs you can ensure portability.

    For example by using a reference to ADO 2.5 when you build on an MDAC 2.8 system, your program should work on any system with ADO 2.5, 2.6, 2.7, 2.8, or DAC 6.0 installed. Barring bugs in ADO 2.5 on a system that actually only has 2.5 installed.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: TLB Files

    Really appreciate the info and nicely provided too
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width