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 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 --> C0235: Second Operand of __QueryInterface must be an interface reference
Error correction:
Example: __QueryInterface(ITFref2, ITFref);