上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: const char* pszEndTime =“2021-09-10 12:00:00 struct tm end = { 0 }; sscanf_s(pszEndTime,"%d-%d-%d %d:%d:%d", &end.tm_year, &end.tm_mon, &end.tm_mday , 阅读全文
posted @ 2020-09-16 15:45 曦花 阅读(202) 评论(0) 推荐(0) 编辑
摘要: BOOL IsDirectory(LPCTSTR pstrPath) { if (NULL == pstrPath) { return FALSE; } /*去除路径末尾的反斜杠*/ CString strPath = pstrPath; if (strPath.Right(1) == _T('\\ 阅读全文
posted @ 2020-09-05 22:08 曦花 阅读(172) 评论(0) 推荐(0) 编辑
摘要: string strHouseId = "abcd"; const char *pC1 = strHouseId.c_str(); strHouseId = "1234"; const char *pC2 = strHouseId.c_str(); 此时的pC1和pC2内容一样 string的c_s 阅读全文
posted @ 2020-09-05 20:27 曦花 阅读(160) 评论(0) 推荐(0) 编辑
摘要: virtual BOOL OnInitDialog(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); ON_WM_CTLCOLOR() BOOL CDlgXXX::OnInitDialog() { CBCGPDia 阅读全文
posted @ 2020-07-15 10:06 曦花 阅读(268) 评论(0) 推荐(0) 编辑
摘要: void Json2String(Json::Value jsonIn, CString &strOut) { Json::FastWriter writer; string szData = writer.write(jsonIn); strOut = CStringFun::string_to_ 阅读全文
posted @ 2020-07-07 13:07 曦花 阅读(1560) 评论(0) 推荐(0) 编辑
摘要: 1方法: 2方法: <script type="text/javascript" charset="utf-8"> function getUrlParameter(name){ name = name.replace(/[]/,"\[").replace(/[]/,"\[").replace(/[ 阅读全文
posted @ 2020-01-07 16:09 曦花 阅读(5693) 评论(0) 推荐(1) 编辑
摘要: a56爆大奖在线娱乐1到2的整数随机数 a56爆大奖在线娱乐1到10的整数随机数 阅读全文
posted @ 2019-12-25 10:31 曦花 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1、CRect rtCtrl; rtCtrl位置可能不在对话框内。 2、在BOOL CDlgXXX::OnInitDialog() 中运用了m_btnClose_.MoveWindow(rtCtrl); 会相应对话框的void CDlgXXX::OnSize(UINT nType, int cx, 阅读全文
posted @ 2019-12-25 09:54 曦花 阅读(703) 评论(0) 推荐(0) 编辑
摘要: USES_CONVERSION它是在堆栈上分配空间的,也就是说你在你在函数未结束就不会被释放掉。所有要注意不要在一个函数中用while循环执行它,不然栈空间就马上会分配完(栈空间一般只有2M,很小)。 不用宏的简单方法 方法二: CString(szEnUrl.c_str()); //可以将stri 阅读全文
posted @ 2019-12-19 15:36 曦花 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/lxn18392641463/article/details/78321080 先说明原因。这里不只是有代码规范的问题,还有汇编语言的问题,要知道为什么,别认为是自己代码习惯不好。慢就是错, 比如这里提到的 一、BOOL与0值得比较 规则:不可将BOO 阅读全文
posted @ 2019-12-18 09:48 曦花 阅读(1026) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页