TCHAR转CString的时候怎么乱码啊
CString strSection1("Msg_Url");
CString strKey1("Url_Title");
CString strDefault("");
CString SName;
CString strPath;
TCHAR szFilePath[MAX_PATH + 1]={0};
GetModuleFileName(NULL, szFilePath, MAX_PATH);
(_tcsrchr(szFilePath, _T('\\')))[1] = 0;//szFilePath 值是这个 "F:\\备份\\IM\\IMclient_jianguan\\client\\bin\\release"
CString str_url;
str_url = szFilePath;//这句str_url就乱码了
str_url.Format(_T("%s"),szFilePath);//这样写也乱码
str_url = str_url + _T("\\im_cfg.ini");
GetPrivateProfileString(strSection1,strKey1,strDefault,SName.GetBuffer(999), 999, str_url);