Neven Wrote

> But I've run into a brick wall using "with combo as IanInterface do"
> all I get is  'Operator not applicable to this operand type'

Aaron Wrote

> when 'as' is used with an Interface identifier as the RHS the LHS must
> implement QueryInterface which comes from IUnknown.

Funny thing is Aaron that Combo does implememt IUnknown (as it implements
IanInterface)
so

var
  interface: IanInterface;

IanInterface := Combo;

compiles OK but 'as' doesn't!

Regards
Neven




---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to