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:
// C3737a.cpp
// compile with: /clr
delegate void __stdcall MyFunc(); // C3737
// Try the following line instead.
// delegate void MyFunc();
int main() {
}
The following sample generates C3737:
// C3737b.cpp
// compile with: /clr:oldSyntax
#using <mscorlib.dll>
__delegate void __stdcall MyFunc(); // C3737
// Try the following line instead.
// __delegate void MyFunc();
int main() {
}