- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 utf8, unicode, gb2312 编码转换vc++
void unicodeToUTF8(const wstring &src, string& result) { int n = WideCharToMultiByte( CP_UTF8, 0, src.c_str(), -1, 0, 0, 0, 0 ); result.resize(n); ::WideCharToMultiByte( CP_UTF8, 0, src.c_str
2009-01-08 15:36:00 1320
原创 urlEncode (vc++)
#ifdef _UNICODE#define tstring wstring#else#define tstring string#endiftstring urlEncode(const TCHAR* szEncode){ tstring strEncoded; static const TCHAR szUnsafe[] = {_T("/" static const TCHAR szHexC
2009-01-08 15:32:00 748
原创 一个循环创建多级目录(vc++)
BOOL createMultiDir(const TCHAR* pszDir){ TCHAR szTmp[MAX_PATH] = {0}; BOOL bSuccess = TRUE; TCHAR* pszHeader = szTmp; wsprintf(szTmp, _T("%s"), pszDir); int nLen = lstrlen(szTmp); for(int i = 0
2009-01-08 15:28:00 550
ShareMemFile
2009-01-08
XML Tree Class (make xml parsing easy)
2009-01-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人