Compiler Error C3737
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

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() {
© 2016 Microsoft