Sdílet prostřednictvím


Chyba kompilátoru C3352

'function' : zadaná funkce neodpovídá typu delegáta "type"

Poznámky

Seznamy parametrů pro function delegáta se neshodují.

Další informace najdete v tématu delegát (rozšíření komponent C++).

Example

Následující příklad vygeneruje C3352:

// C3352.cpp
// compile with: /clr
delegate int D( int, int );
ref class C {
public:
   int mf( int ) {
      return 1;
   }

   // Uncomment the following line to resolve.
   // int mf(int, int) { return 1; }
};

int main() {
   C^ pC = gcnew C;
   System::Delegate^ pD = gcnew D( pC, &C::mf );   // C3352
}