[Dllimport ......]
就可以了
就可以了
解决方案 »
- |ZYCWPF| 在自定义控件中ZRichTextBox : RichText 为什么GetTemplateChild和FindName都得不到我的控件对像呢?
- C#中用什么方法可以知道U盘的盘符
- 在c#中使用oracle中的sql语句
- C#调用Oracle9i存储过程时,传BLOB类型参数怎么还有大小限制啊?为什么?
- 关于计算余弦值,为什么不对??
- C#字符串比较的问题
- Remotin与TcpChannel连接的问题
- 不能调试Web应用程序,请各位大虾相助!
- 问一下dataset中的表的问题
- 请教有关删除数据库记录的方法(在线等)?
- 对数据库的操作,
- 遇到Windows Forms程序两处疑难,请帮我解答!!
[DllImport.....]
private static extern Type GetPrivateProfileString(...)
private static extern int GetPrivateProfileString(string section,
string key,string def, StringBuilder retVal,
int size,string filePath);
http://www.codeproject.com/csharp/cs_ini.asp
private static extern long WritePrivateProfileString ( string section ,string key ,string val, string filePath) ;
[ DllImport ("kernel32")]
private static extern int GetPrivateProfileString ( string section ,string key , string def , StringBuilder retVal ,int size , string filePath ) ;WritePrivateProfileString ( section , key , keyValue , FileName ) ;int i = GetPrivateProfileString ( section ,key ,"无法读取对应数值!",temp , 255 , FileName ) ;