大约有 3,000 项符合查询结果(耗时:0.0083秒) [XML]
关于Rsyslogd 的一些配置 (高性能、高可用 rsyslogd) - C/C++ - 清泛网 - ...
...篇 关于 rsyslog queue的文档,细节几乎都在这篇文档里。
定义 $MainMsgQueueFilename 可以简单理解为队列入口无限大,$MainMsgQueueMaxDiskSpace来控制大小。
队列的堵塞可能的原因是各种其他原因导致的 MainMsg 满了,而默认配置下,rsyslog...
Win32 创建控件风格不是Win XP的解决方案 - C/C++ - 清泛网 - 专注C/C++及内核技术
...是放在comctl32这个DLL里面的,所以有时候在用这些系统自定义的控件时,需要我们首先调用InitCommonControlsEx函数。这个DLL的版本有很多,存放在Windows\winsxs目录下面,或者你直接检索:common control,结果如下:
好了,下面说一下...
CMap用法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...种实现。先上实例:
int _tmain(int argc, char* argv[])
{
//定义
typedef CMap<int, int, CString, CString> CMapInt;
CMapInt map;
//添加key,val
map.SetAt(1, "str1");
map.SetAt(2, "str2");
map.SetAt(3, "str3");
map.SetAt(1, "str11"); //把str1覆盖了
//查...
选中CListCtrl指定行并发送LVN_ITEMCHANGED消息 - C/C++ - 清泛网 - 专注C/C++及内核技术
...M)(&nmlv));
通过以上代码,我们就在VC程序中实现了自定义向CListCtrl控件发送LVN_ITEMCHANGED消息,其效果和鼠标在指定行上面单击是一样的!
CListCtrl LVN_ITEMCHANGED
std::find,std::find_if使用小结 - C/C++ - 清泛网 - 专注C/C++及内核技术
...ind_if函数的第三个参数,请查阅STL手册)。
find_if函数的定义:
template<class InputIterator, class Predicate>
InputIterator find_if(InputIterator _First, InputIterator _Last, Predicate _Pred);
Parameters
_First
An input iterator addressing the position of the first element...
stdbool.h C99标准杂谈 - C/C++ - 清泛网 - 专注C/C++及内核技术
...准中引入了头文件 stdbool.h,包含了四个用于布尔型的预定义宏:
#define true 1
#define false 0
#define bool _Bool
typdef int _Bool
但是很遗憾,Visual C++不支持C99,至少现在来看是没这个计划(参见http://en.wikipedia.org/wiki/C99)。所以stdbool.h就...
std::vector排序 - C/C++ - 清泛网 - 专注C/C++及内核技术
....begin(), vecTest.end())
默认升序。
其他情况可能就需要自定义排序函数了:
bool SortByM1( const Test &v1, const Test &v2) //注意:本函数的参数的类型一定要与vector中元素的类型一致
{
return v1.member1 < v2.member1;//升序排列
}
....
std::...
一款IP:端口监控工具 服务器端口监控工具[附源码] - C/C++ - 清泛网 - 专注...
...同时也可手动刷新。
支持连接异常报警(PC蜂鸣器、自定义wav文件)。
软件下载:https://www.tsingfun.com/down/soft/74.html
源码下载:TradeMonitor.zip
主要代码请参考:《mfc telnet 端口,代码实现、不调用telnet.exe》
表格采...
MFC中主窗口和子窗口的菜单问题,如何统一显示MDI主窗体菜单? - C/C++ - ...
...S(CMFCApplication1Doc),
RUNTIME_CLASS(CChildFrame), // 自定义 MDI 子框架
RUNTIME_CLASS(CMFCApplication1View));
运行效果:
MDI 菜单
C++代码执行安装包静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术
...ESS; //不可少,否则不会等待安装结束 (详见SHELLEXECUTEINFO定义: HANDLE hProcess; // out, valid when SEE_MASK_NOCLOSEPROCESS specified)
// Ask for privileges elevation.
sei.lpVerb = TEXT("runas");
// Create a Command Prompt from which y...
