tags:

views:

150

answers:

2

Hello,

I need to parse unmanaged code's TLB (Of unmanaged COM server) in C#.NET. What are the way arounds to do this.?

Regards Usman

A: 

By creating a managed wrapper using tlbimp.exe.

Darin Dimitrov
I need to write a wrapper code in C# for extracting all types contained inside type library(unmanaged COM server's TLB)
Usman
No, the `tlbimp.exe` utility will generate a managed assembly from the TLB which will contain all the types that are exposed.
Darin Dimitrov
Then how can I be able to write such code in C# to extract all types,interfaces,exposed functions with complete signatures of that COM server whose TLB is UNMANAGED?
Usman
A: 

Hi.

Once I wrote a TLB browser in VB. I used a COM component that shipped with VB 6 called TlbInf32.dll (you can still find this component in the web I guess).

Best

Vagaus