摘要: int iTextLen; iTextLen = WideCharToMultiByte ( CP_UTF8, 0, str, -1, NULL, 0, NULL, NULL); pElementText = new char[iTextLen + 1]; memset( ( void* )pElementText, 0, sizeof( char ) * ( iTextLen + 1 ) ); ::WideCharToMultiByte( CP_UTF8,0,str,-1,pElementText,iTextLen,NULL,NULL ); 阅读全文
posted @ 2011-05-23 21:16 陈朋 阅读(1790) 评论(0) 推荐(0)