Delen via


Compilerfout C3641

'functie': ongeldige aanroepconventie 'calling_convention' voor functie die is gecompileerd met /clr:pure of /clr:safe

Opmerkingen

De opties /clr:pure en /clr:safe compiler zijn afgeschaft in Visual Studio 2015 en worden niet ondersteund in Visual Studio 2017.

Alleen __clrcall oproepconventie is toegestaan met /clr:pure.

Example

In het volgende voorbeeld wordt C3641 gegenereerd:

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