2011年3月11日
摘要: //将unicode下的wstring转化成ansi下的stringinline std::string UnicodeToASCII(LPCTSTR lpszText){ int length=_tcslen(lpszText); TCHAR* pWideCharStr=new TCHAR[length+1]; char* data=new char[2*length+2]; _tcscpy(pWideCharStr, lpszText); WideCharToMultiByte(CP_ACP, 0, pWideCharStr, -1, data, 2*length + 2, NULL, N 阅读全文
posted @ 2011-03-11 16:36 3D入魔 阅读(359) 评论(0) 推荐(0) 编辑