Erreur du compilateur C3618
'function' : une méthode marquée dllImport ne peut pas être définie
Une méthode marquée avec DllImportAttribute est définie dans la specified.DLL.
Exemple
L’exemple suivant génère l’erreur C3618.
// C3618.cpp
// compile with: /clr /c
using namespace System;
using namespace System::Runtime::InteropServices;
[ DllImport("user32.dll", EntryPoint="MessageBox", CharSet=CharSet::Ansi) ] // CHANGED
void Func();
void Func() {} // C3618, remove this function definition to resolve