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