public interface ITestInterface
To do this, follow these steps:
- Apply assembly-level IDispatchImplAttribute(IDispatchImplType.CompatibleImpl) to use an operating system provided ITypeInfo implementation instead of .NET’s implementation.
Or, you can apply such attribute on any types that have to be accessed through IDispatch.
- Change the interface type to be InterfaceIsDual, as the operating system provided ITypeInfo implementation does not support pure dispatch interfaces.
- Make the interface public and visible to COM. This is so that the interface actually shows in the type lib and so that the corresponding typeinfo can be found in the type lib.
Article ID: 2997900 - Last Review: 17 Sep 2014 - Revision: 1