Should be a simple question, but searching the documentation is driving me nuts. Suppose I have an ITypeInfo pointer for a coclass or an interface. How do I get the name of that class or interface?
Should be a simple question, but searching the documentation is driving me nuts. Suppose
Share
Ok. It did turn out to be pretty simple. You just need to call the
ITypeInfo.GetDocumentationmethod with the member id set toMEMBERID_NIL(−1). Like so:If you’re programming in .NET, the above is conveniently performed for you by the
Marshal.GetTypeInfoNamemethod: