自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

ctl_2008_11的专栏

http://www.cetelo.com

  • 博客(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

维护的多进程间安全共享内存数据: CShareMemFile<DataType, TimeoutMillsec> MemFile; MemFile.create("name"); DataType* pData = MemFile.getLockBuffer(); MemFile.releaseLockBuffer();

2009-01-08

XML Tree Class (make xml parsing easy)

解析xml文件或者string更加容易,使用简单 支持unicode,multibytes编码 class CXmlTree { public: BOOL fromXml(const TCHAR* pszSource, BOOL bFromFile); CXmlTree* getSubNode(const vector<tstring>* vecPath); void getChildren(const tstring& strChildName, vector<CXmlTree*>* pRetVec); BOOL addAttrib(const tstring& strName, const tstring& strVal); tstring getAttrib(const tstring& strName); tstring getName(); tstring& getData(); int getChildrenCount(); BOOL isHasChildren(); CXmlTree* getChildAt(int nIndex); };

2009-01-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除