摘要: 简介 有时候我们拿到了函数的调用地址,但是需要在call之前做一些判断或者预处理,这时我们就需要封装一个自定义的函数call模板。 代码 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstdint> #incl 阅读全文
posted @ 2025-06-28 18:21 倚剑问天 阅读(41) 评论(0) 推荐(0)
摘要: 代码 #!/usr/bin/env python # encoding: utf-8 import os import binascii from datetime import datetime, timezone colnum_per_row = 16 file_path = 'demo.sys 阅读全文
posted @ 2025-03-20 00:54 倚剑问天 阅读(79) 评论(0) 推荐(0)
摘要: 前言 Boost 版本: boost_1_70_0 编译器选择: MSVC 14.41(对应 VS2022) 主要参考文章: https://blog.csdn.net/ljjjjjjjjjjj/article/details/122312270 详细步骤 1. 确认 MSVC 编译器版本与路径 使 阅读全文
posted @ 2024-11-15 16:41 倚剑问天 阅读(1828) 评论(0) 推荐(0)
摘要: 概述 在 Windows 开发环境中,当您需要同时使用多个 Git 账号(例如个人账号与工作账号)访问 GitHub、GitLab 等平台时,为每个账号配置独立的 SSH 密钥是一种清晰且安全的做法。本文将详细介绍如何通过简单的配置,实现一套系统内多 Git 账号 SSH 密钥的生成、管理与无缝切换 阅读全文
posted @ 2024-10-29 19:32 倚剑问天 阅读(322) 评论(0) 推荐(0)
摘要: 代码 #include <windows.h> #include <Psapi.h> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include < 阅读全文
posted @ 2024-09-20 10:36 倚剑问天 阅读(453) 评论(0) 推荐(0)
摘要: 代码 // 单精度转半精度 unsigned short cpu_float2half(float f) { unsigned short ret; unsigned x = *((int*)(void*)(&f)); unsigned u = (x & 0x7fffffff), remainder 阅读全文
posted @ 2024-09-18 17:01 倚剑问天 阅读(284) 评论(0) 推荐(0)
摘要: 通用工程模板 1. 输出目录:$(ProjectDir)..\output\$(ProjectName)\$(Platform)_$(Configuration)\ 2. 中间目录:$(ProjectDir)..\output\$(ProjectName)\$(Platform)_$(Configu 阅读全文
posted @ 2024-09-04 23:13 倚剑问天 阅读(118) 评论(0) 推荐(0)
摘要: 前言 处于某些研究目的,我们经常需要在dx11绘制的界面上绘制我们自己的操作菜单,以方便进行一些可视化操作;这里面imgui库因为其优越的可用性,健壮性和美观性,得到了很多人的青睐。那么我们应该如何在一个带有dx的软件界面上利用imgui绘制我们自己的界面呢?下面的代码就是为了解决这个问题的(采用d 阅读全文
posted @ 2024-07-20 17:06 倚剑问天 阅读(379) 评论(0) 推荐(0)
摘要: 代码样例 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <conio.h> #include <string> #include <vector> #include <map> 阅读全文
posted @ 2024-07-08 15:26 倚剑问天 阅读(91) 评论(0) 推荐(0)
摘要: 正文 将字符串转换成等效int数组 std::vector<uint32_t> convert_wstring_to_int_array(const wchar_t* str) { std::vector<uint32_t> vec; for (size_t i = 0; i < wcslen(st 阅读全文
posted @ 2024-04-19 19:56 倚剑问天 阅读(289) 评论(0) 推荐(0)