Home > Archive > VC Language > January 2006 > what is the difference between type library and dll?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
what is the difference between type library and dll?
|
|
| yogpjosh@gmail.com 2006-01-31, 4:11 am |
| Hello All,
I have started learning COM recently and getting at each step.
I have following question..
what is the difference between type libraries and dlls? as both store
the COM object.
Regards,
Yogesh Joshi
| |
| Alex Blekhman 2006-01-31, 4:11 am |
| yogpjosh@gmail.com wrote:
> I have started learning COM recently and getting 
> at each step. I have following question..
> what is the difference between type libraries and dlls?
> as both store the COM object.
Here's definition of type library:
-------
Type Library
A type library (.tlb) is a binary file that stores
information about a COM or DCOM object's properties and
methods in a form that is accessible to other applications
at runtime. Using a type library, an application or browser
can determine which interfaces an object supports, and
invoke an object's interface methods. This can occur even if
the object and client applications were written in different
programming languages. The COM/DCOM run-time environment can
also use a type library to provide automatic
cross-apartment, cross-process, and cross-machine marshaling
for interfaces described in type libraries.
-------
And that's of DLL:
-------
A dynamic-link library (DLL) is a module that contain
functions and data that can be used by another module
(application or DLL).
-------
In other words, TLB contains description of COM object. DLL
is just container of functions and resources. It's
convenient to store COM object (or several objects) in DLL
while having corresponding TLB's embedded in DLL module as
binary resources.
|
|
|
|
|