报错语句为:
1 | _stprintf_s(filepath, _T("%s\\%s"), curpath, CA2T(iniFilePath)); |
改为如下就不报错了:
1 2 | CString iniFilePathT = CA2T(iniFilePath); _stprintf_s(filepath, _T("%s\\%s"), curpath, (LPCTSTR)iniFilePathT); |
人,技术,生活。
报错语句为:
1 | _stprintf_s(filepath, _T("%s\\%s"), curpath, CA2T(iniFilePath)); |
改为如下就不报错了:
1 2 | CString iniFilePathT = CA2T(iniFilePath); _stprintf_s(filepath, _T("%s\\%s"), curpath, (LPCTSTR)iniFilePathT); |