会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
0x0c,0x0d
Write The CODE,Change The World!
首页
新随笔
联系
管理
上一页
1
···
26
27
28
29
30
31
32
33
34
···
46
下一页
2021年6月17日
mfc多线程
摘要: CWinThread *thread = AfxBeginThread(DownloadAsync, this, THREAD_PRIORITY_NORMAL, 0, NULL); //可在线程内部直接调用此函数退出当前线程 AfxEndThread(resultCode); //等待线程执行结束
阅读全文
posted @ 2021-06-17 11:04 Hey,Coder!
阅读(62)
评论(0)
推荐(0)
2021年6月10日
c#获取对象指针&从指针转为对象
摘要: GCHandle objHandle = GCHandle.Alloc(Globals.Instance.BlackBoard, GCHandleType.WeakTrackResurrection); int address = GCHandle.ToIntPtr(objHandle).ToInt
阅读全文
posted @ 2021-06-10 19:25 Hey,Coder!
阅读(1800)
评论(0)
推荐(0)
c++ 读文件到string
摘要: #include <iostream> #include <fstream> #include <sstream>std::stringstream ss; std::ifstream fileStream{ filePath, std::ios::binary }; std::stringstre
阅读全文
posted @ 2021-06-10 17:40 Hey,Coder!
阅读(600)
评论(0)
推荐(0)
2021年5月27日
wpf 移除listbox默认阴影、选中样式
摘要: <!--移除默认选中的阴影(通过绑定ItemContainerStyle来使用)--> <Style x:Key="ListItemNullFocusContainerStyle" TargetType="ListBoxItem"> <Setter Property="SnapsToDevicePi
阅读全文
posted @ 2021-05-27 20:56 Hey,Coder!
阅读(538)
评论(0)
推荐(0)
wpf 引用ttf viewmodel绑定
摘要: 预览字体 引用字体 <UserControl.Resources> <!-- 方式一 --> <FontFamily x:Key="IconFont"> Pack://application:,,,/MyApp;component/font/#fontname </FontFamily> <!--
阅读全文
posted @ 2021-05-27 17:08 Hey,Coder!
阅读(123)
评论(0)
推荐(0)
2021年5月26日
vs2019 jsoncpp 编译
摘要: [源码地址]( http://sourceforge.net/projects/jsoncpp ) 直接使用源码 拷贝相关文件 把jsoncpp-src-0.5.0文件拷贝到工程目录下 将jsoncpp-src-0.5.0\jsoncpp-src-0.5.0\include\json和jsoncpp
阅读全文
posted @ 2021-05-26 10:18 Hey,Coder!
阅读(601)
评论(0)
推荐(0)
2021年5月21日
wpf监听依赖属性变化 可实现监听窗口位置变化
摘要: DependencyPropertyDescriptor descriptor; descriptor = DependencyPropertyDescriptor.FromProperty(LeftProperty, typeof(Window)); //第一个对象为触发变化的对象 descrip
阅读全文
posted @ 2021-05-21 22:33 Hey,Coder!
阅读(547)
评论(0)
推荐(0)
2021年5月12日
mfc zlib minizip vs2019
摘要: 需要注意Release和Debug使用的dll可能有差异,Release时需要使用对应的Dll zlib源码文件中zlib123\contrib\vstudio此文件夹包含所需的zip、unzip相关实例代码minizip 最新版为zlib1.2.11 相关库文件 https://files.cnb
阅读全文
posted @ 2021-05-12 16:51 Hey,Coder!
阅读(1013)
评论(0)
推荐(1)
mfc mediaplayer
摘要: 插入activeX控件 类向导 双击mediaplayer插入对应的库文件 导入头文件 #include "wmpplayer4.h" #include "wmpsettings.h" #include "wmpcontrols.h" 创建对应的变量 CWMPPlayer4 player;//在类向
阅读全文
posted @ 2021-05-12 15:51 Hey,Coder!
阅读(118)
评论(0)
推荐(0)
2021年4月15日
wpf datagrid排序图标样式
摘要: <!--Datagrid排序右侧小三角图标样式--> <Style x:Key="DataGridSortHeaderStyle" TargetType="{x:Type DataGridColumnHeader}"> <Setter Property="Template"> <Setter.Val
阅读全文
posted @ 2021-04-15 13:15 Hey,Coder!
阅读(638)
评论(0)
推荐(0)
上一页
1
···
26
27
28
29
30
31
32
33
34
···
46
下一页
公告