• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2042
  • Last Modified:

Difference between tlb,olb and lib files?

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.




Thanks&Regards
chandu
0
sekhar2000
Asked:
sekhar2000
1 Solution
 
Alon HirschSoftware Development ManagerCommented:
Hi,

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.

HTH,
Alon
0
 
sekhar2000Author Commented:
Thanks a lot for valuable answer.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now