When you create a type library in Delphi and create an interface and the associated CoClass, Delphi also creates matching dispinterface declarations.
My understanding is that these relate to the fact that my interface derives from IDispatch, but I thought that TAutoObject implements everything needed for IDispatch. So my question is threefold:
- What is the dispinterface used for?
- Why is it needed?
- How does one use it?