E2289 published または automated セクションは VCL クラスでのみサポートされる (C++)

提供:RAD Studio (日本語)
移動: 案内, 検索

コンパイラは,__published 部または __automated 部を持つクラスに対して特別な仮想テーブルを生成する必要があります。このため,これらの部は,Delphi スタイルのクラスでのみサポートされます。

次に例を示します。



 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 };
 };
他言語版