在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”。是否缺少程序集引用
------解决方案--------------------
打错了吧,是DllImport,两个L,一个I。