Skip to main content

Errore del compilatore C0241

Messaggio: il secondo operando di __QueryPointer deve essere un puntatore

Possibile causa dell'errore: Gli operandi errati vengono passati all'operatore __QueryPointer.

Correzione dell'errore: Passa un puntatore.

Esempio 459. Esempio dell'errore:
PROGRAM PLC_PRG
VAR
    b : INT;
    ITFref : ITF;
    pt : POINTER TO FB;
END_VAR

__QueryPointer(ITFref,b);

INTERFACE ITF EXTENDS __System.IQueryInterface

Messaggio:

C0241: il secondo operando di __QueryPointer deve essere un puntatore

Correzione dell'errore:

__QueryPointer (ITFref, pt);