I have played with a third-party library that is accessed with a COM interface.
For some tests, I have created the main form as:
TForm1 = class (TForm, IThirdParyCOMInterface)
TForm1 implements all methods of IThirdParyCOMInterface, and I get the functionality that I need.
The next step is to create a separate class only for dealing with this COM-Interface.
Doing something like this:
TMyClass = class (TInterfacedObject, IThirdParyCOMInterface)
results in compiler errors:
E2291 Missing implementation of interface method IDispatch.GetTypeInfoCount
E2291 Missing implementation of interface method IDispatch.GetTypeInfo
E2291 Missing implementation of interface method IDispatch.GetIDsOfNames
E2291 Missing implementation of interface method IDispatch.Invoke
( IThirdPartyCOMInterface = interface (IDispatch) )
It seems that TForm already implements these IDispatch methods, but my new simple class doesn't.
How can I do this for a new class like the above?
From which class should I inherit my new class, so that these IDispatch methods are already implemented?
EDIT:
I just found TAutoIntfObject. Is that what I need?
(COM is a bit confusing to me, and I am just guessing here)