摘要: 转自https://www.cnblogs.com/study-everyday/p/6978513.html 问题原因 可能是修改本地的文件之前没有update,导致commit的时候产生冲突,致使SVN崩溃。 解决方法: 1. 到网上下载sqlite3.exe,解压到D:\document\.s 阅读全文
posted @ 2022-04-11 16:24 曦花 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 转自https://www.cnblogs.com/hmmcsdd/archive/2007/03/26/MSHttpErrorCode.html HTTP 响应状态码 #define HTTP_STATUS_CONTINUE 100 OK to continue with request. #de 阅读全文
posted @ 2021-05-06 13:40 曦花 阅读(1813) 评论(0) 推荐(0) 编辑
摘要: 豆豆系统:http://www.doudouxitong.net/windows7/系统之家:http://www.huizhiwyx.com/这里可以下载 xp、win7、win8、win10等的安装镜像iso 阅读全文
posted @ 2015-11-17 14:00 曦花 阅读(208) 评论(0) 推荐(0) 编辑
转自 AfxGetMainWnd()为什么返回NULL

通常认为AfxGetMainWnd()会返回主窗口的指针。实际上有“前提条件”的。即返回当前调用AfxGetMainWnd()的线程的主窗口指针。

所以如果在程序的主线程中调用AfxGetMainWnd(),则返回程序(主线程)的主窗口指针。

如果在辅助线程(CreateThread)中调用AfxGetMainWnd(),则返回辅助线程的窗口指针,如果辅助线程没有创建窗口,则返回NULL。

即如果发现AfxGetMainWnd()返回NULL,则要先确认它是否在辅助线程中被调用。

 

If AfxGetMainWnd is called from the application's primary thread, it returns the application's main window according to the above rules. If the function is called from a secondary thread in the application, the function returns the main window associated with the thread that made the call.

 

选在用static CMainFrame* gThis;的方式

 

在h文件中 static CMainFrame* gThis;

cpp文件中 

CMainFrame* CMainFrame::gThis = NULL;
IMPLEMENT_DYNCREATE(CMainFrame, CBCGPFrameWnd)

CMainFrame::CMainFrame()
{
gThis = this;
。。。

}

使用的时候CMainFrame::gThis

posted @ 2025-02-28 16:49 曦花 阅读(1) 评论(0) 推荐(0) 编辑
摘要: CString strValue(_T("")); GetPrivateProfileString("保存路径", "本地", "0", strValue.GetBuffer(256), 256, iniPath); strValue.ReleaseBuffer(256); m_LocalPath 阅读全文
posted @ 2025-02-18 14:00 曦花 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、双击运行已经编译好的exe程序 2、 ‌设置DLL工程为启动工程‌:将DLL工程设置为启动工程,这样调试器才能挂接到DLL工程上。‌ ‌配置调试属性‌:右键单击DLL工程,选择“属性”进入属性设置页面。在“配置属性”中选择“调试”,然后在“要启动的调试器”列表中选择“本地Windows调试器”。 阅读全文
posted @ 2024-12-13 17:59 曦花 阅读(63) 评论(0) 推荐(0) 编辑
摘要: CComboBox的SelectString函数有弊端 CComboBox中字符串通过AddString添加后, 比如 天气1、天气2、天气222,天气234 CComboBox调用SelectString(0, _T("天气2"))函数有弊端。可能会选择的是 天气222应该用for循环判断 m_c 阅读全文
posted @ 2024-11-28 16:07 曦花 阅读(6) 评论(0) 推荐(0) 编辑
摘要: BCGP2800版本,CBCGPDialog背景图SetBackgroundImage(IDB_BMP_BK);需要时bmp格式的 BCGP2500版本,CBCGPDialog背景图SetBackgroundImage(IDB_BMP_BK);可以说bmp格式。也可以是png格式 BOOL CXXX 阅读全文
posted @ 2024-10-25 13:46 曦花 阅读(4) 评论(0) 推荐(0) 编辑
摘要: mysql-9.0.1-winx64 转自 mysql服务安装碰到的坑和自己整理_mysql-9.0.1-winx64-CSDN博客 记录一次【截止目前最新版本MySql安装教程】MySql-9.0.1-winx64_wx657d5fcb04e20的技术博客_51CTO博客 1、解压 mysql-9 阅读全文
posted @ 2024-10-24 11:49 曦花 阅读(258) 评论(0) 推荐(0) 编辑
摘要: BCGP控件按照属性设置之后有问题,一定检查是不是对话框背景调用OnPaint导致的 频繁刷背景图,影响到 BCGP按钮 今天遇到一个问题BCGPButton设置背景图,本来很简单 设置边框样式为无边框, 透明设置为TRUE,依旧是 按钮上边缘总有 2像素的背景色为白色。 多方便卸载检测问题,都没有 阅读全文
posted @ 2024-09-29 16:32 曦花 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 远程操作ip服务器, 运行linux系统命令 可以配置文件,启动服务器,检查证书, 等 阿里云配置证书,域名证书过期,记得及时配置证书 阅读全文
posted @ 2024-06-12 17:40 曦花 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 参考这个 VS2019 附加库目录路径和附加依赖项没有问题却仍报错LNK1104无法打开lib的解决办法 https://blog.csdn.net/weixin_66296893/article/details/127463346 他解释的原因很好,目录深度(绝对路径深度) 而我遇到的问题是,右键 阅读全文
posted @ 2024-05-27 17:19 曦花 阅读(118) 评论(0) 推荐(0) 编辑
摘要: int approximateToNearestMultiple(int number, int multiple) { int nearestMultiple = (number + multiple / 2) / multiple * multiple; return nearestMultip 阅读全文
posted @ 2024-03-25 14:21 曦花 阅读(11) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示