Michael Van Canneyt wrote:

No, you can pass the interface pointer directly:

MyIntf : IMyInterface;

begin
  MyIntf := MyClassInstance as IMyInterface;
end;

Then pass on MyIntf.


Thanks for the reply. That simplifies things.

Regards,

Adriaan van Os
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to