Compiler Error C3641
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3641.
function' : invalid calling convention 'calling_convention' for function compiled with /clr:pure or /clr:safe
Only __clrcall calling convention is allowed with /clr:pure.
The following sample generates C3641:
// C3641.cpp
// compile with: /clr:pure /c
void __cdecl f() {} // C3641
Show: