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
- [DUG]: Determining if Object Implements an interfa... Neven MacEwan
- RE: [DUG]: Determining if Object Implements a... Dennis Chuah
- Re: [DUG]: Determining if Object Implemen... Neven MacEwan
- RE: [DUG]: Determining if Object Implemen... Mark Derricutt
- Re: [DUG]: Determining if Object Impl... Aaron Scott-Boddendijk
- RE: [DUG]: Determining if Object Impl... maxrf
- RE: [DUG]: Determining if Object ... Dennis Chuah
- Re: [DUG]: Determining if Object Implements a... Aaron Scott-Boddendijk
- Re: [DUG]: Determining if Object Implemen... Neven MacEwan
- Re: [DUG]: Determining if Object Implemen... Neven MacEwan
- Re: [DUG]: Determining if Object Impl... Aaron Scott-Boddendijk
- RE: [DUG]: Determining if Object Impl... Max Nilson
- Re: [DUG]: Determining if Object ... Neven MacEwan
- RE: [DUG]: Determining if Ob... Dennis Chuah
- Re: [DUG]: Determining i... Aaron Scott-Boddendijk
