Edit

Share via


Compiler Error C3737

'delegate': a delegate may not have an explicit calling convention

You cannot specify the calling convention for a delegate.

Example

The following sample generates C3737:

// C3737a.cpp
// compile with: /clr
delegate void __stdcall MyFunc();   // C3737
// Try the following line instead.
// delegate void MyFunc();

int main() {
}