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;
MultiByteToWideChar
最新推荐文章于 2024-01-06 09:45:00 发布