Skip to main content

Errore del compilatore C0239

Messaggio: L'interfaccia <nome interfaccia 1> non estende <nome interfaccia 2>

Possibile causa dell'errore: L'interfaccia utilizzata non estende un'altra interfaccia.

Correzione dell'errore: Estendi l'interfaccia.

Esempio 457. Esempio dell'errore:
PROGRAM PLC_PRG
VAR
    ITFref : ITF;
    ITFref2 : ITF2;
END_VAR

__QueryInterface(ITFref2,ITFref);

INTERFACE ITF
INTERFACE ITF2 EXTENDS ITF

Messaggio:

C0239: l'interfaccia ITF non estende __System.IQueryInterface

Correzione dell'errore:

INTERFACE ITF EXTENDS __System.IQueryInterface