stringmstr=Out;intnwLen=MultiByteToWideChar(CP_UTF8,0,mstr.c_str(),-1,NULL,0);//算出合适的长度LPWSTRstrUnicode=newWCHAR[nwLen];MultiByteToWideChar(CP_UTF8,0,mstr.c_str(),-1,strUnicode,nwLen);//ASCII转UNICODEintnLen=WideCharToMultiByte(CP_ACP,0,strUnicode,-1,NULL,0,"",false);//算出合适的长度char*strAscii=newchar[nL