1】CString tmp;
GetPrivateProfileString("section_name","key_name","default",tmp.GetBuffer(20),20,IniFile)
2】 CString tmp;
WritePrivateProfileString("section_name","key_name",tmp,IniFile)
3】 int tmp;
tmp=GetPrivateProfileString("section_name","key_name",default,IniFile)
4】 int tmp;CString tmp2;
tmp2.Format("%d",tmp);
WritePrivateProfileString("section_name","key_name",tmp2,IniFile)
5】 char tmp[10];int num;
sprintf(tmp,_T("%d"),num);
WritePrivateProfileString("section_name","key_name",tmp,IniFile)
阅读(1064) | 评论(0) | 转发(0) |