Compiler Error C0235
Message: Second Operand of __QueryInterface must be an interface reference
Possible error cause: Incorrect operands are passed to the operator __QueryInterface.
Error correction: Pass an interface reference.
Example 458. Example of the error:
PROGRAM PLC_PRG
VAR
a : INT;
ITFref, ITFref2 : ITF;
ITFref2 : ITF2;
END_VAR
__QueryInterface(ITFref2, a);
INTERFACE ITF EXTENDS __SYSTEM.IQueryInterface
INTERFACE ITF2 EXTENDS ITF
Message:
C0235: Second Operand of __QueryInterface must be an interface reference
Error correction:
__QueryInterface(ITFref2, ITFref);