随笔分类 -  Windows

摘要:# Visual Studio IDE ## 调试问题 * 调试时中文字符串显示乱码或者问号 => 将该变量添加到监视,在变量名后添加`,s8` ## 为 gui 程序添加 console 窗口打印信息 ```cpp // wxh add console for print info! if (!A 阅读全文
posted @ 2023-05-29 09:22 GreyWang 阅读(95) 评论(0) 推荐(0)
摘要:OutputManager.h // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMIT 阅读全文
posted @ 2023-04-17 18:52 GreyWang 阅读(291) 评论(0) 推荐(0)
摘要:WMI Provider占用高 重启Windows Management Instrumentation服务 rem need administrator @echo off net stop Winmgmt /y net start Winmgmt 图标变为空白块 win + R、%localap 阅读全文
posted @ 2023-04-17 18:50 GreyWang 阅读(161) 评论(0) 推荐(0)
摘要:资源管理器右键添加打开cmd窗口指令 资源管理器空白处右键添加打开cmd窗口命令,直接打开cmd并切换到当前目录 首先删除该指令 添加该指令条目、名称,然后添加具体的指令 此.reg文件必须以UTF-8-BOM编码格式保存,否则无法设置中文名称 Windows Registry Editor Ver 阅读全文
posted @ 2023-04-17 18:47 GreyWang 阅读(224) 评论(0) 推荐(0)
摘要:1. 修改输入法兼容性 ==失败== 右键语言栏,选择设置,选择常规,选择使用以前版本的微软拼音输入法 2. 安装兼容库 VClib ==失败== 管理员模式运行powershell,Add-AppxPackage -Path 依赖包路径 命令安装依赖的库 3. 修改注册表 ==半失败== 参考连接 阅读全文
posted @ 2023-02-15 21:17 GreyWang 阅读(2295) 评论(0) 推荐(0)
摘要:获取图标的位图数据 分两次使用GetDIBits(),以便于正确设置缓存的大小 正确设置BITMAPINFO的大小,否则就会报堆栈溢出错误 ICONINFO info = { 0 }; GetIconInfo(hIcon, &info) HDC bmp, maskbmp; bmp = CreateC 阅读全文
posted @ 2023-02-15 17:17 GreyWang 阅读(617) 评论(0) 推荐(0)