03 2020 档案
摘要:1.目标文件夹必须是版本控制的文件夹 2.用鼠标右键选中原目录,拖动到目标目录 3.释放鼠标的时候会弹出菜单,选中"SVN Move versioned item(s) here",然后commit即可保留历史数据 参考链接: https://blog.csdn.net/sepnineth/arti
阅读全文
摘要:今天单例模式初始化中调用单例实例,程序出现了卡死! 原因:单例初始化中访问单例,造成了死循环;
阅读全文
摘要:PtInRect 的详细范围 CRect::PtInRect 函数可以用来判断给定的点是否在所在的矩形区域之内,但MSDN上并没有给出其详细的边界情况,现给出如下: rect.PtInRect(point) ; 即矩形框为 rect , 判断点 point 是否在其内,则结果是: 如果 rect.l
阅读全文
摘要:windows窗口全屏 //head file #include <shobjidl.h> #include <wrl/client.h> struct SavedWindowInfo { LONG style; LONG ex_style; CRect window_rect; }; SavedW
阅读全文
摘要:Visual Studio 2015 添加类、添加现有项失败 弹出消息对话框:提示,一个或多个错误发生; 解决记录: 1.使用安装包重新安装vs20015,失败; 2.尝试使用Viusal Studio 2015 安装包进行修复, 修复失败; 3.然后发现电脑在安装vs2015前安装了vs2017,
阅读全文
摘要:将RGB缓存数据保存为PNG图片 int GetEncoderClsid(const WCHAR* format, CLSID* pClsid) { UINT num = 0; // number of image encoders UINT size = 0; // size of the ima
阅读全文
摘要:方法挺多的,_access和_mkdir算是比较古典了,不过很好用。 #include <io.h> #include <direct.h> // 判断文件夹是否存在 bool IsDirExist(const char *pszDir) { if (pszDir == NULL) return f
阅读全文