09 2010 档案

还算好用的线程封装类
摘要:#ifndef _ZKit_ThreadBase_h_ #define _ZKit_ThreadBase_h_ #include "AX_Thread.h" #include "ZKit_Config.h" BEGIN_ZKIT class ThreadBase { public: ThreadBase(int nStackSize = 0); vir... 阅读全文

posted @ 2010-09-03 08:46 joeguo 阅读(278) 评论(0) 推荐(0)

两种实现单件模式代码重用的方法
摘要:#ifndef _ZKit_Singleton_h_ #define _ZKit_Singleton_h_ #include "ZKit_Config.h" BEGIN_ZKIT template <class T> class Singleton { public: static T* instance() { if ( 0 == s_instanc... 阅读全文

posted @ 2010-09-03 08:42 joeguo 阅读(239) 评论(0) 推荐(0)

模仿.net实现的C++ datetime类
摘要:#ifndef _ZKit_DateTime_h_ #define _ZKit_DateTime_h_ #include "ZKit_Config.h" BEGIN_ZKIT class DateTime { public: DateTime(time_t seconds); DateTime(int year,int month,int day); DateTime... 阅读全文

posted @ 2010-09-03 08:40 joeguo 阅读(1083) 评论(0) 推荐(0)

简单易用的C++日志类
摘要:#pragma once #include "SDKDefine.h" #include "AX_Mutex.h" ////////////////////////////////////////////////////////////////////////// enum LogLevel { LogLevel_All, LogLevel_Debug,... 阅读全文

posted @ 2010-09-03 08:28 joeguo 阅读(1181) 评论(2) 推荐(0)

用于打印海康设备告警的小程序
摘要:#include <stdio.h> #include <assert.h> #include <time.h> #include <Windows.h> #include "HCNetSDK.h" #define ERR NET_DVR_GetLastError() #define ERR_MSG NET_DVR_GetErr... 阅读全文

posted @ 2010-09-02 12:05 joeguo 阅读(598) 评论(0) 推荐(0)

导航