Compilerwarnung (Stufe 1) C4561

Aktualisiert: November 2007

Fehlermeldung

"__fastcall" ist mit dem "/CLR"-Schalter inkompatibel: Konvertierung nach "__stdcall" erfolgt
'__fastcall' incompatible with the '/clr' option: converting to '__stdcall'

Die Aufrufkonvention der __fastcall-Funktion kann nicht mit der /clr-Compileroption verwendet werden. Der Compiler ignoriert die Aufrufe von __fastcall. Um die Warnung zu vermeiden, entfernen Sie entweder die __fastcall -Aufrufe oder führen die Kompilierung ohne /clr durch.

Im folgenden Beispiel wird C4561 generiert:

// C4561.cpp
// compile with: /clr /W1 /c
// processor: x86
void __fastcall Func(void *p);   // C4561, remove __fastcall to resolve