Difference between tlb,olb and lib files?

Posted on 2003-03-20
Medium Priority
Last Modified: 2008-03-10
Dear All,

Difference between tlb,olb and lib files?which will use at which places?
I unsderstood the difference between Activex DLL ,Activex Exe.

I would like to know how to build a library using VB such that it should contain abstract classes,classes
and coclasses.It seems they build it using VC++.I am not sure.
Just for understanding I am asking this one.The library what I am working now contains classes of Abstaract class,
CoClass and Class.where he is showing Instantian,association,compostion and multiplicatty relationship beween them.
Can we have sample code such that programatically how we will do the same using VB.

Question by:sekhar2000
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

AlonHirsch earned 2000 total points
ID: 8174427

A .TLB file is a type library file. It contains all the declarations needed for a project to be able to access an ActiveX object (EXE or DLL). VB automatically generates the TLB information and places it inside the ActiveX EXE or DLL when you compile it from within VB.

A .LIB file is a static library file that would be used from within C or C++ in order to reference functions exported by your .DLL or .EXE

A .DLL with one or more type library resources typically has a .OLB file extension. In other words, this would occur if the .DLL contains several public classes.


Author Comment

ID: 8216991
Thanks a lot for valuable answer.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question