Create header file from COM TLB

Given a managed COM object and its associated tlb file, I would like to access it from some unmanaged C ++ code WITHOUT using the TLB / import command. But use the header file.

Is there a way to extract the header file from the TLB?

thanks

+4
source share
2 answers

I found him (on a whim). OLE / COM Viewer allows you to save a TLB file as a header file, C or IDL! Very cool! Thanks!

+6
source

I am not sure why you do not want to use the import command. this ensures that every time you compile the code, you get a header corresponding to the COM library.

Otherwise, you risk using an obsolete header if you forget to manually generate the header.

+1
source

All Articles