上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: void GetWorkingFolder(std::string& folder){ folder.resize(MAX_PATH*2 + 1, '\0'); //留长一点,防止后面再连接一个Cloudwalk时出错 //获取当前程序目录,如果是C盘,则获取APPDATA目录,然后在末尾添加目录后 阅读全文
posted @ 2019-08-07 13:48 日月王 阅读(269) 评论(0) 推荐(0)
摘要: 删除历史日志的一个API bool DeleteOldFiles(const char* strFolder, const char* strPrefix, bool is_recursion, UINT32 ulMinDateTime, UINT32 ulMaxDateTime) { HANDLE 阅读全文
posted @ 2019-08-02 17:46 日月王 阅读(190) 评论(0) 推荐(0)
摘要: /******************************************************** * @file : Mutex.h * @desc : 同步对象 * @author : * @date : 2019-7-30 * @version : 1.0.0 ******** 阅读全文
posted @ 2019-08-01 11:14 日月王 阅读(213) 评论(0) 推荐(0)
摘要: CSharedCriticalSection 实现临界区的访问:加锁、去锁 CSharedMutex 实现临时窃取临界区对象,然后加锁,对象销毁时又会去锁,然后归还对象 class CSharedCriticalSection { public: CSharedCriticalSection() { 阅读全文
posted @ 2019-07-25 10:52 日月王 阅读(296) 评论(0) 推荐(0)
摘要: beyond compare 4.2.9桌面右键集成的问题修复 安装后,发现在WIN64时,注册表中注册的DLL库有问题 出错处: [HKEY_CLASSES_ROOT\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32] @="D 阅读全文
posted @ 2019-07-24 11:04 日月王 阅读(1002) 评论(0) 推荐(0)
摘要: 递归创建目录1: 需要#include <shlwapi.h>,并且配置好shlwapi.ib BOOL CreateDirTree( LPCTSTR lpPath ) { if( NULL == lpPath || _tcslen(lpPath)==0 ) { return FALSE; } if 阅读全文
posted @ 2019-07-16 09:53 日月王 阅读(523) 评论(0) 推荐(0)
摘要: 代码参考了如下网页的实现: https://www.cnblogs.com/zy791976083/p/9921069.html 整理成一个函数: BOOL GetResGifSize(long nResId, LPCTSTR name, long *lnWidth, long *lnHeight) 阅读全文
posted @ 2019-07-12 15:03 日月王 阅读(485) 评论(0) 推荐(0)
摘要: 在关于对话框中,自动获取当前程序的版本,以显示 在CAboutDlg的OnInitDialog接口添加如下代码,将自动从当前程序EXE文件中读取版本信息,并显示在指定CStatic中 BOOL CAboutDlg::OnInitDialog() { CDialogEx::OnInitDialog() 阅读全文
posted @ 2019-07-11 19:26 日月王 阅读(279) 评论(0) 推荐(0)
摘要: 一个通用的C++结构定义如下: typedef struct tagCommonStruct { long len; void* buff; }CommonStruct_st; 此接口对应的普通序列化、反序列化接口如下: unsigned char* EncodeCommonStruct(const 阅读全文
posted @ 2019-07-10 19:29 日月王 阅读(1653) 评论(0) 推荐(0)
摘要: 接触GMSSL一段时间了,总结一点点想法 证书:DER格式、PEM格式 .DER = DER扩展用于二进制DER编码证书。 .PEM = PEM扩展用于不同类型的X.509v3文件,是以“ - BEGIN ...”前缀的ASCII(Base64)数据。 DER格式是二进制的,PEM则是文本格式, 实 阅读全文
posted @ 2019-07-05 20:01 日月王 阅读(5393) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页