MultiByteToWideChar

来源:互联网 发布:网络监控头更改ip 编辑:程序博客网 时间:2024/05/21 15:06
strData.Format("日期:%s",pDoc->allpar.m_szPot);int length = MultiByteToWideChar(CP_ACP, 0,strData.GetBuffer(), -1,NULL,0);WCHAR *wstr=new WCHAR[length];MultiByteToWideChar(CP_ACP,0,strData.GetBuffer(),-1,wstr,length);strData.ReleaseBuffer();//pDC->TextOut(nLeft+1500,nTop+nHeight*6+300,strData);::TextOutW(pDC->m_hDC,nLeft+1500,nTop+nHeight*6+300,wstr ,length);delete [] wstr;


原创粉丝点击