Relationship between TLB, tlh, and TLI files

Source: Internet
Author: User
TLB file: Com-type library file. In the module where the corresponding com class needs to be used, "# import... *. TLB" is used.
Tlh and TLI files: they are the standard C ++ files generated by the VC ++ compiler to parse TLB files. Because odl and TLB are not c ++ standards, it is necessary to translate them into standard C ++ types so that C ++ developers can use them. I believe that VB and J ++ will also translate TLB into type descriptions compatible with their own languages. Tlh is equivalent to the type declaration (header file), and TLI is equivalent to the definition implementation (CPP file ). You can use the WordPad to open and view its content.

Note an important related question:
Under VC, # import "A. TLB" no_namespace named_guids; after compilation, two files a. tlh and A. TLI are generated,After the TLB file is updated, the two corresponding files are not updated.Why?
If the TLB file is updated Select Otherwise, the compiler still considers the. tlh and. TLI files to be up-to-date.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.