'function': a method marked sysimport cannot be defined
Methods marked with sysimport are defined in the specified .DLL.
The following code sample generates C3618:
#using <mscorlib.dll> using namespace System; [ sysimport(dll="user32.dll", name="MessageBox", charset="auto") ] void Func(); void Func() { // C3618, remove this function definition to resolve } void main() { }