char pFileName[MAX_PATH];
memset(pFileName,0,MAX_PATH);
CString CpFile;
WCHAR *pTemp = CpFile.GetBuffer();
::WideCharToMultiByte( CP_ACP,0,pTemp,-1,pFileName,MAX_PATH,NULL,NULL );
标签:MFC,MAX,CString,char,PATH,NULL,pFileName
来源: https://blog.csdn.net/weixin_40385285/article/details/94611306