How to invoke a method of a private COM interfaces, defined in a base class?
问题 How can I invoke a method of a private COM interface, defined in a base class, from a derived class? For example, here is the COM interface, IComInterface (IDL): [ uuid(9AD16CCE-7588-486C-BC56-F3161FF92EF2), oleautomation ] interface IComInterface: IUnknown { HRESULT ComMethod([in] IUnknown* arg); } Here's the C# class BaseClass from OldLibrary assembly, which implements IComInterface like this (note the interface is declared as private): // Assembly "OldLibrary" public static class