编译返回错误 CS0246:找不到类型或命名空间名称“DLLImport”...我的参考中有 aacorlib。当我查看 System.Runtime.InteropServices 时,我找不到 DllImportAttribute。它引用 aacorlib。如何引用 mscorlib 以访问 DLLImport?
提前致谢!!
使用系统;使用 System.Runtime.InteropServices;
... [DllImport("user32.dll", SetLastError = true)]