会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
曦花
花儿开在春风里
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
14
下一页
2019年12月17日
ShellExecute打开文件,打开文件夹的用法
摘要: 转自https://www.cnblogs.com/nxopen2018/p/11070031.html //方法1 //转换 //char msg[256]; //sprintf_s(msg, "start %s", strDir.c_str()); //打开并显示文件夹(windows cmd)
阅读全文
posted @ 2019-12-17 11:02 曦花
阅读(2152)
评论(0)
推荐(0)
2019年11月11日
map访问key不存在的情况下,用find。比[]直接访问的意思不一样,map[key]不返null
摘要: key不存在的话则创建一个pair并调用默认构造函数 map<CGuid, CLibItem>::iterator iterItem = m_world->m_library_scene->m_items.find(guid); if (iterItem != m_world->m_library_
阅读全文
posted @ 2019-11-11 15:06 曦花
阅读(885)
评论(1)
推荐(0)
2019年9月3日
KillTimer不能放在析构函数,可以放在DestroyWindow函数里
摘要: 转自 https://www.cnblogs.com/huking/archive/2009/11/27/1612201.html KillTimer&析构函数 析构函数中不能用KillTimer, 原因:在析构函数中窗口已经不存在,所以KillTimer函数已经没有了窗口句柄,当然会出错 使用位置
阅读全文
posted @ 2019-09-03 09:48 曦花
阅读(507)
评论(0)
推荐(0)
2019年8月30日
Picture Control 加载路径图片
摘要: //CBitmap bitmap; //HBITMAP hBmp; //bitmap.LoadBitmap(strImgPath); //hBmp = (HBITMAP)bitmap.GetSafeHandle(); //m_btn_pic_.SetBitmap(hBmp); CString str
阅读全文
posted @ 2019-08-30 17:46 曦花
阅读(1154)
评论(0)
推荐(0)
2019年8月15日
读取中文文件到CString
摘要: CString strFileName = _T("D:\\ai\\100.json"); CFile file; file.Open(strFileName, CFile::modeRead); INT sz = file.GetLength(); WCHAR *wBuf = new WCHAR[sz + 1]; char* buffer_sr...
阅读全文
posted @ 2019-08-15 16:00 曦花
阅读(562)
评论(0)
推荐(0)
2019年7月11日
CStatic 控件设置文本,不能重回问题
摘要: 可以试试: CStatic m_page_text_;
阅读全文
posted @ 2019-07-11 17:13 曦花
阅读(417)
评论(0)
推荐(0)
2019年6月26日
PreTranslateMessage中有调用模态对话框的解决方法
摘要: 原文:https://blog.csdn.net/guoguojune/article/details/45332511 dlg.DoModal()截住了界面消息,所以返回时原来的pMsg的内容已经更改了,消息,窗口句柄都不在是if以前的值了, 而且窗口句柄应该是对话框里的子窗口的句柄,所以调用CF
阅读全文
posted @ 2019-06-26 18:09 曦花
阅读(666)
评论(0)
推荐(2)
2019年6月19日
DirectX学习入门笔记(一)
摘要: 原文:https://blog.csdn.net/butcher986115/article/details/50595937 什么是DirectX? DirectX是游戏制作者的API(Application Development Interface)。 它是一组允许你直接控制计算机硬件设备的软
阅读全文
posted @ 2019-06-19 13:36 曦花
阅读(1412)
评论(0)
推荐(0)
2016年11月14日
QModelIndex 与 QStandardItem互转
摘要: 1、 QModelIndex 转换成QStandardItem QStandardItem * item=QStandardItemModel::itemFromIndex(const QModelIndex & index) const 2 、QStandardItem 转换成 QModelIn
阅读全文
posted @ 2016-11-14 11:25 曦花
阅读(2169)
评论(0)
推荐(0)
2015年12月29日
获取exe所在目录路径,速度
摘要: // test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include int _tmain(int argc, _TCHAR* argv[]){ int size = 999999; TCHAR sCfgF...
阅读全文
posted @ 2015-12-29 11:13 曦花
阅读(802)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
14
下一页
公告