I've recently had need to produce an interop assembly. After some googling I discovered tlbimp.exe
. My next problem was that my COM library did not come with a .tlb
file. Further googling revealed that the type lib is often included as a resource in an exe/dll. Sure enough, opening the exe in VS2010 revealed it's type lib and a right-click later I had a tlb file to use with tlbimp
. Awesome.
However this is not a very nice process. Should I need to do this in the future, is there a way of extracting a Type Lib (.tlb file) from a .exe using the command line?