摘要: *.vs | *.pdb | *.ilk | *.obj | *.idb | *.log | *.tlog | *.recipe | *.ipch | *.pch | *.VC.db | folder:ipch | *.ipch | *.exe.config | whole:folder:obj | 阅读全文
posted @ 2026-10-22 19:54 double64 阅读(3) 评论(0) 推荐(0)
摘要: 头文件: class MyLockTest { public: MyLockTest(); ~MyLockTest(); public: void DoSomething(); protected: struct lock_guard; private: struct Impl; Impl *m_i 阅读全文
posted @ 2026-10-22 16:41 double64 阅读(2) 评论(0) 推荐(0)
摘要: 下面实现一个「二维行列 ↔ 一维 vector 索引」的转换工具。核心公式是行优先(row-major)布局: index = row * cols + col row = index / cols col = index % cols 上面实现的索引和行col列row都从 0 开始,与 C/C++ 阅读全文
posted @ 2026-10-19 17:49 double64 阅读(7) 评论(0) 推荐(0)
摘要: 新建翻译文件 翻译文字 编译翻译文件 右键翻译文件编译,会在生成目录下生成 xxx.qm 文件。 简单测试 QTranslator* g_Translator{ nullptr }; void QtWidgetsAppTest::on_btn_MsgTest_clicked() { auto res 阅读全文
posted @ 2026-09-20 15:31 double64 阅读(8) 评论(0) 推荐(0)
摘要: #pragma comment(lib, "Qt5Xlsx.lib") // 导入库 #pragma execution_character_set("utf-8") // 它并不改变编译器读取源文件的编码,只改变生成可执行文件里字符串字面量的编码。 Visual Studio 安装路径中的 VC 阅读全文
posted @ 2026-09-18 10:35 double64 阅读(10) 评论(0) 推荐(0)
摘要: 字符串转换: #include <msclr/marshal_cppstd.h> using namespace msclr::interop; // 从 std::string 转为 System::String^ std::string nativeStr = "Hello"; String^ 阅读全文
posted @ 2026-09-08 20:39 double64 阅读(10) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { if (args.Length 阅读全文
posted @ 2026-08-13 11:37 double64 阅读(9) 评论(0) 推荐(0)
摘要: 样式: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; // 1. 移除菜单栏 SetMenu(NULL); // 阅读全文
posted @ 2026-07-16 09:24 double64 阅读(22) 评论(0) 推荐(0)
摘要: 一. 去掉菜单栏 在 int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) 函数中添加: if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; // 1. 保留 WS_SYSMEN 阅读全文
posted @ 2026-07-16 09:22 double64 阅读(22) 评论(0) 推荐(0)
摘要: BOOL CMFCApplication1Dlg::OnInitDialog() { CDialogEx::OnInitDialog(); // 1. 移除边框样式(无标题栏、无边框) DWORD dwStyle = GetStyle(); dwStyle &= ~(WS_CAPTION | WS_ 阅读全文
posted @ 2026-07-15 23:11 double64 阅读(34) 评论(0) 推荐(0)