Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
'function' : the specified function does not match the delegate type 'type'
Remarks
The parameter lists for function and the delegate do not match.
For more information, see delegate (C++ Component Extensions).
Example
The following example generates 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
}