摘要: 结构体中用到是CString的类型变量的时候,用memset初始化是错误的 原因:m_strTemp的地址被赋值为空指针了,并不是把m_strTemp内容赋值空了,所以后续使用就出错了 如下: struct Test { CString m_strTemp; int m_nTemp; bool m_ 阅读全文
posted @ 2019-06-26 08:31 冰从天降 阅读(1774) 评论(0) 推荐(0) 编辑
摘要: dbValueTime格式为YYYYMMDD数值的日期 double $_GetWeekOfMonth(double dbValueTime){ int nYear = dbValueTime/10000; int nMonth = (dbValueTime - nYear*10000)/100; 阅读全文
posted @ 2019-06-20 09:21 冰从天降 阅读(454) 评论(0) 推荐(0) 编辑
摘要: #include <sstream>// 函数功能:根据位数取数据的位数// @param1 [in] CAL_Tokenizer // @param2 [in] 浮点数// @param3 [in] 位数// return 取好位数的字符串string WINAPI FloatToStr(floa 阅读全文
posted @ 2016-06-27 13:12 冰从天降 阅读(1887) 评论(0) 推荐(0) 编辑
摘要: #include <regex>bool CheckEmailAddress(CString csEmailAddress){ std::tr1::regex reg("([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)"); s 阅读全文
posted @ 2016-06-14 16:43 冰从天降 阅读(1050) 评论(0) 推荐(0) 编辑