E2002 __automated セクションでは __fastcall 関数しか使用できない (C++)

提供: RAD Studio
移動先: 案内検索

コンパイラのエラーと警告(C++):インデックス への移動


__automated セクションで宣言される関数の呼び出し規約は __fastcall である必要があります。

次に例を示します。



 struct__declspec(delphiclass) clxclass
 {
 __automated:
 int__fastcall fooInt(int);// OK
 int__cdecl    barInt(int);// エラー
 };