Thank you. I thought #import is something similar to #include.
JJ <JJ@discussions.microsoft.com> wrote:
Your said #import xxx.tlb and #import xxx.dll behave the same. Does
that mean using #import tlb is better than #import dll because if
type library is bound to the dll, import dll will make code larger?
What do you mean, make code larger? Do you think #import physically
embeds the DLL into your program or something?
A type library is a piece of data. It makes no difference whether this
block of data is stored in a separate file, or is attached to a DLL. All
#import does is read this data and produce a couple of text files that
are then passed to the compiler. You can look at these files yourself,
they have .tlh and .tli extensions.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925