Partager via


Avertissement du compilateur C4439

'nom de fonction' : la définition de fonction avec un type managé dans la signature doit avoir une __clrcall convention d’appel

Remarques

Le compilateur a implicitement remplacé une convention d’appel par __clrcall. Pour résoudre cet avertissement, supprimez la convention d’appel ou __cdecl la convention d’appel__stdcall.

C4439 est toujours émis en tant qu’erreur. Vous pouvez désactiver cet avertissement avec le #pragma warning ou /wd. Pour plus d’informations, consultez warning ou /w, , , /W0/W1/W2/W3/W4/w1/w2/w3/w4/Wall/wd/we/wo/Wv, ( /WX Niveau d’avertissement).

Exemple

L’exemple suivant génère l’erreur C4439 :

// C4439.cpp
// compile with: /clr
void __stdcall f( System::String^ arg ) {}   // C4439
void __clrcall f2( System::String^ arg ) {}   // OK
void f3( System::String^ arg ) {}   // OK