大约有 48,000 项符合查询结果(耗时:0.0418秒) [XML]

https://www.tsingfun.com/it/cpp/1197.html 

cmake与autoconf+automake的对比 - C/C++ - 清泛网 - 专注C/C++及内核技术

...stall(DIRECTORY dirs..) 条件语句 使用Make的条件语句 if() endif if(my) else(my) endif(my) while(condition) endwhile(condition) 执行外部命令 exec_program(commd ) 子模块 include() 信息输出 messge(STATUS "messge") ...
https://www.tsingfun.com/it/cpp/1282.html 

解决:Run-Time Check Failure #0,The value of ESP was not properly sav...

...lared with one calling convention with a function pointer declared with a different calling convention. 错误原因: 你定义函数指针原型时出错。 其实你定义的没有错,但是编译器不认识而已,因为你调用的dll函数是一个远函数,而且是一个C函数,...
https://www.tsingfun.com/it/cpp/1492.html 

vc/mfc *通配符 批量删除文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

... FileOp.pFrom = delFileName; FileOp.pTo = NULL; if (SHFileOperation(&FileOp) != 0) printf("删除文件:%S失败(Error:%d)\n", delFileName, GetLastError()); return 0; } 经过测试,文件路径必须为绝对路径,相对路径会操作...
https://www.tsingfun.com/it/cpp/1496.html 

c++ boost::multi_index composite keys efficiency - C/C++ - 清泛网 - 专注C/C++及内核技术

...cal order, i.e. sorting is performed by the first key, then the second key if the first one is equal, etc". Does this mean that the structure is stored such that a lookup for a specific 2-part composite key will take O(n=1) time, i.e. is the container sorted such that there is a pointer directly to ...
https://www.tsingfun.com/it/cpp/1497.html 

C++字符串截断时中文的处理问题(中文被截断怎么处理?) - C/C++ - 清泛网...

...理?) 防止后台错误消息中汉字双字节被截断出现乱码if (pRspMsg->RspMsg.buf[pRspMsg->RspMsg.Length() - 2] & 0x80) pRspMsg->Rsp...// 防止后台错误消息中汉字双字节被截断出现乱码 if (pRspMsg->RspMsg.buf[pRspMsg->RspMsg.Length() - 2] & 0x80) //是否是...
https://www.tsingfun.com/it/cpp/1498.html 

c++读注册表 - C/C++ - 清泛网 - 专注C/C++及内核技术

...xx")); HKEY hKey; LONG rc = RegOpenKey(HKEY_LOCAL_MACHINE, key, &hKey); if (ERROR_SUCCESS == rc) { WCHAR szBuffer[MAX_PATH]; DWORD dwBufferSize = sizeof(szBuffer); rc = RegQueryValueEx(hKey, _T("Path"), NULL, NULL, (LPBYTE)szBuffer, &dwBufferSize); if (ERROR_S...
https://www.tsingfun.com/it/cpp/1539.html 

csplitterwnd 窗口不能自适应的解决方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

csplitterwnd 窗口不能自适应的解决方法if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext)) { TRACE0("Failed to cr...if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext)) { TRACE0("Failed to ...
https://www.tsingfun.com/it/cpp/1563.html 

mfc spin control 用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

mfc spin control 用法BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg)END_MESSAGE_MAP().h:a...BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg) END_MESSAGE_MAP() .h:afx_msg v...
https://www.tsingfun.com/it/cpp/1583.html 

mfc 按钮变成了非xp风格、界面变成windows经典样式的原因总结 - C/C++ - 清...

... 非xp风格          xp风格stdafx.h中添加:#ifdef _UNICODE#if defined _M_IX86#pragma co...首先看一下xp风格与非xp风格:   非xp风格          xp风格 stdafx.h中添加: #ifdef _UNICODE #if defined _M_IX86 #pragma comme...
https://www.tsingfun.com/it/cpp/1951.html 

[完整源码实例] 修改 CListCtrl 的标题栏字体颜色;重绘 CListCtrl 标题栏 ...

...载自定义Header CHeaderCtrl *pHeader = m_ListCtrl.GetHeaderCtrl(); if(pHeader == NULL) return FALSE; m_HeaderCtrl.SubclassWindow(pHeader->m_hWnd); m_HeaderCtrl.SetFont(f); 效果: 这个比较简单,但是如果需要设置颜色等其他属性,则需要自绘重画CHeaderC...