Hiya All

Ive been using QueryInterface rather than is and as class operators but
QueryInterface is protected so I keep on having to do the following

TIC = class(TComponent)
end;

var
  MyIF: IMyIF

if TIC(MyComp).QueryInterface(IMyIF, MyIF) = S_OK then ...

Am I missing something?


Regards Neven
N.K. MacEwan B.E. E&E
[EMAIL PROTECTED]

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

Reply via email to