Getting the version of a COM object

Posted by Shao on Stack Overflow See other posts from Stack Overflow or by Shao
Published on 2008-11-13T19:56:32Z Indexed on 2010/05/30 22:52 UTC
Read the original article Hit count: 346

Filed under:

I am accessing a .NET COM object from C++. I want to know the version information about this COM object. When I open the TLB in OLEVIEW.exe I can see the version information associated with the coclass. How can I access this information from C++? This is the information I get:

[
  uuid(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX),
  version(1.0),
  custom(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, XXXX)
]
coclass XXXXXXXX{
    [default] interface XXXXXXXX;
    interface _Object;
    interface XXXXXXXX;
};

© Stack Overflow or respective owner

Related posts about com