Importing a Com Object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

I have a COM object and I need it to import the comobject.dll into my
VC++ 2005 application.
I was able to do it easly in C Sharp but in VC++ 2005?


Many Thanks
Filippo
 
If it's just unmanaged C++, you need to generate a type library from your
assembly (using tlbexp) and then say import "this.tlb" in your source where
other header files get included. The import creates a couple of header files
that get included, describing the COM interfaces, Guids, methods etc.
 
Back
Top