converting COM components to. NET Metadata

Source: Internet
Author: User

In. NET development, you need to call some COM components, and the elements of a COM component are converted to. NET metadata before they can be called well.

The following is the process of my turn.

First, open C:\Program Files (x86) \microsoft Sdks\windows\v8.0a\bin\netfx 4.0 Tools (Path has TlbImp.exe), depending on the VS version, the path may be different, please follow your own path.

Second, open the path to the COM component you want to go to, for example: C:\Windows\SysWOW64\XjcaFgwATL.dll

Again, run, cmd Open the command prompt, WIN10 Notice to open with Administrator way oh.

Finally, at the command prompt, the CD enters the path of the TlbImp.exe, enter the specific content in the TlbImp sample.dll/out:sample_clw.dll format, as described in the following procedure:

Finally, the path of the generated file is given, in which the generated file can be found,. NET, referencing this file.

converting COM components to. NET Metadata

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.