分类: C/C++
2010-07-20 18:33:33
void CCheckMailDlg::UTF8ToGB(CString szinput,CString &szOut) |
{ |
|
WCHAR *strSrc; |
TCHAR *szRes; |
int i = MultiByteToWideChar(CP_UTF8, 0, szinput, -1, NULL, 0); |
strSrc = new WCHAR [i+1]; |
MultiByteToWideChar(CP_UTF8, 0, szinput, -1, strSrc, i); |
i = WideCharToMultiByte(CP_ACP, 0, strSrc, -1, NULL, 0, NULL, NULL); |
szRes = new TCHAR [i+1]; |
WideCharToMultiByte(CP_ACP, 0, strSrc, -1, szRes, i, NULL, NULL); |
szOut = szRes; |
delete []strSrc; |
delete []szRes; |
} |
chinaunix网友2010-07-21 13:08:49
这个不错 [url=http://www.g771.com/]网页游戏2010前十名[/url] [url=http://www.110n.com/]呱呱视频社区2010版下载[/url] [url=http://www.maikaolingouwu.com/]麦考林购物网[/url] [url=http://www.shoujijixiong.com/]号令天下手机号[/url]