Kompilatorfel C3641

"function" : ogiltig anropskonvention "calling_convention" för funktion som sammanställts med /clr:pure eller /clr:safe

Anmärkningar

Alternativen /clr:pure och /clr:safe compiler är inaktuella i Visual Studio 2015 och stöds inte i Visual Studio 2017.

Endast __clrcall anropskonvention tillåts med /clr:pure.

Example

I följande exempel genereras C3641:

// C3641.cpp
// compile with: /clr:pure /c
void __cdecl f() {}   // C3641