Export (0) Print
Expand All
Expand Minimize

Compiler Error C3737

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

You cannot specify the calling convention for a __delegate.

The following sample generates C3737:

// C3737.cpp
// compile with: /clr
#using <mscorlib.dll>
__delegate void __stdcall MyFunc();   // C3737

// The following line resolves the error.
// __delegate void MyFunc();

int main() {
}
Show:
© 2015 Microsoft