16,473
社区成员
发帖
与我相关
我的任务
分享
//写入
strTemp = m_sSerialNumText;
CString sOld("\r\n");
CString sNew("!newline!");
strTemp.Replace(sOld, sNew);
::WritePrivateProfileString(_T("OtherSetting"),_T("SerialNumberText"),strTemp,strFileName);
//读取
GetPrivateProfileString(_T("Setting"),_T("Text"),_T("test"),strTemp,MAX_LENGTH,strFileName);
m_sSerialNumText = strTemp;
CString sNew("\r\n");
CString sOld("!newline!");
m_sSerialNumText.Replace(sOld, sNew);