随笔分类 -  函数备份

AddVersion
摘要:    void AddVersion()     {        TCHAR szAppPath[MAX_PATH] = {0};          GetModuleFileName(NULL,... 阅读全文

posted @ 2010-07-18 11:45 devcfei 阅读(189) 评论(0) 推荐(0)

GUID2stdstring
摘要:int GUID2stdstring(GUID guid,std::string& str,int type=0) {     std::stringstream ss;         if(type==0)     {      ... 阅读全文

posted @ 2010-05-01 21:47 devcfei 阅读(244) 评论(0) 推荐(0)

T2stdstring
摘要:int T2stdstring(TCHAR* szString,std::string& str) {   #ifdef _UNICODE       int len=lstrlen(szString)*2;     char * p=new char[len+1];     if... 阅读全文

posted @ 2010-05-01 21:43 devcfei 阅读(134) 评论(0) 推荐(0)