'function': 無法定義標示 DllImport 的方法
備註
標記 DllImportAttribute 的方法定義於specified.DLL中。
範例
下列範例會產生 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