RAD Studio |  |

E2289: __published or __automated sections only supported for Delphi classes (C++)
Example
Collapse All

The compiler needs to generate a special kind of vtable for classes containing __published and __automated sections. Therefore, these sections are only supported for Delphi style classes.

Example
Copy Code

    structregclass
    {
    int mem;
    __published:// Error: no Delphi style class
    int __property ip = { read = mem, write = mem };
    };
    struct__declspec(delphiclass) clxclass
    {
    int mem;
    __published:// OK
    int __property ip = { read = mem, write = mem };
    };

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!