摘要:
CStdioFile.WriteString向文件中写入字符串,但字符串中带有中文的,无法写入。解决方案:将带有中文的字符串进行转换后再写入文件。char*pBuffer=NULL;longlBufferSize;lBufferSize=WideCharToMultiByte(CP_ACP,WC_NO_BEST_FIT_CHARS,m_sRtf,-1,NULL,0,NULL,NULL);pBuffer=newchar[lBufferSize+1];WideCharToMultiByte(CP_ACP,WC_NO_BEST_FIT_CHARS,m_sRtf,-1,pBuffer,lBufferS 阅读全文