E2008 Published property access functions must use __fastcall calling convention (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index


The calling convention for access functions of a property (read, write, and stored) declared in a __published section must be __fastcall. This also applies to hoisted properties.

Example:

struct__declspec(delphiclass) clxclass{int__fastcall Getter1(void); int__cdecl    Getter2(void); __published:int __property ip1 = {read = Getter1};    // OKint __property ip2 = {read = Getter2};    // Error};