RAD Studio
ContentsIndex
PreviousUpNext
E2008: Published property access functions must use __fastcall calling convention

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. 

 

struct__declspec(delphiclass) clxclass{int__fastcall Getter1(void); int__cdecl    Getter2(void); __published:int __property ip1 = {read = Getter1};    // OKint __property ip2 = {read = Getter2};    // Error};
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!