Hi
I need to store List of Interfaces. Actually Objects that has common interfaces.
I can't do it nor with TList nor with as "array of IMyInterface"
In both cases I get an error
[Error] system.pas(101): Not supported: array of COM-interface
Hi
I need to store List of Interfaces. Actually Objects that has common interfaces.
I can't do it nor with TList nor with as "array of IMyInterface"
In both cases I get an error
[Error] system.pas(101): Not supported: array of COM-interface
I have no idea about what code you use.
I test this here with:
IMyIntf = interface(IInterface)
procedure test;
end;
TMyObj = class(TInterfacedPersistent, IMyIntf)
public
procedure test;
end;
var
il:TList;
obj: TMyObj;
begin
il := TList.Create;
obj := TMyObj.Create;
il.Add(obj);
end;
and I see no issue.
Hi
I used TList of generics
Thanks
I shared my code, so share your code so I can see what you are doing