摘要:
结构体中用到是CString的类型变量的时候,用memset初始化是错误的 原因:m_strTemp的地址被赋值为空指针了,并不是把m_strTemp内容赋值空了,所以后续使用就出错了 如下: struct Test { CString m_strTemp; int m_nTemp; bool m_ 阅读全文
摘要:
dbValueTime格式为YYYYMMDD数值的日期 double $_GetWeekOfMonth(double dbValueTime){ int nYear = dbValueTime/10000; int nMonth = (dbValueTime - nYear*10000)/100; 阅读全文
摘要:
#include <sstream>// 函数功能:根据位数取数据的位数// @param1 [in] CAL_Tokenizer // @param2 [in] 浮点数// @param3 [in] 位数// return 取好位数的字符串string WINAPI FloatToStr(floa 阅读全文
摘要:
#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 阅读全文