C#声明api函数出错
helmo 2013-08-08 09:32:54 在vs中声明一个对ini文件的写函数
[System.Runtime.InteropServices.DllImport("kernel32")]
private static extern long WritePrivateProfilesString(string section, string key, string val, string filePath);
错误 30 命名空间“System.Runtime.InteropServices”中不存在类型或命名空间名称“DllImport”。是否缺少程序集引用