btw,this is unicode project.
S
stonexin
@stonexin
Posts
-
converting CString to Char[100] -
converting CString to Char[100]LPSTR WideChar2MBCS( const CString& strCS )
{
const UINT wLen = strCS.GetLength() + 1;
UINT aLen = WideCharToMultiByte(CP_ACP,0,strCS,wLen,NULL,0,NULL,NULL);
LPSTR lpa = new char[aLen];
WideCharToMultiByte(CP_ACP,0,strCS,wLen,lpa,aLen,NULL,NULL);
return lpa;
}maybe this will help you. myblog is: http://www.cppblog.com/stonexin/archive/2011/12/01/161280.html