在 Symbian OS 平台上移植C语言工程的方法
2010-02-09 02:16:00 来源:WEB开发网核心提示:TPtr8 utf8Text(utf8TempText->Des());CnvUtfConverter::ConvertFromUnicodeToUtf8(utf8Text,TDesCString);Char* cString = (char*)utf8Text.Ptr();把char*转换成TPtr:TPtr8
TPtr8 utf8Text(utf8TempText->Des());
CnvUtfConverter::ConvertFromUnicodeToUtf8(utf8Text,TDesCString);
Char* cString = (char*)utf8Text.Ptr();
把char*转换成TPtr:
TPtr8 utf8Text((TText8*)cString,strlen(cString),strlen(cString));
HBufC* ucs2TempText = HBufC::NewLC(utf8Text.Length()*2);
TPtr ucs2Text(ucs2TempText->Des());
CnvUtfConverter::ConvertToUnicodeFromUtf8(ucs2Text,utf8Text);
更多精彩
赞助商链接