CString cResult;
CString cTemp;
int nSize = 256;
GetPrivateProfileString(_T(“KEY”), _T(“path”), NULL, cTemp.GetBufferSetLength(nSize), nSize, cPath);
cResult = cTemp.GetBuffer(1);
mfc inifile unicode mode读取方法
最新推荐文章于 2024-04-26 09:30:15 发布
CString cResult;
CString cTemp;
int nSize = 256;
GetPrivateProfileString(_T(“KEY”), _T(“path”), NULL, cTemp.GetBufferSetLength(nSize), nSize, cPath);
cResult = cTemp.GetBuffer(1);