- 博客(7)
- 收藏
- 关注
原创 Python struct.pack(“!dHHHH%ds“%len(self.data),tt,0,self.tap_lenght,self.tap_type,0,_data)里的%ds是什么意思
Python struct.pack("!dHHHH%ds"%len(self.data),tt,0,self.tap_lenght,self.tap_type,0,_data)里的%ds是什么意思
2023-02-17 19:23:11
221
原创 MFC中常常看到一些代表属性的宏定义的工作原理
MFC中常常看到一些代表属性的宏定义的工作原理如果需要添加一些风格,可以是 | 即或运算;举例:style = CS_VREDRAW | CS_HREDRAW ;如果要去掉某个风格,则需要 先取反~,然后再与&,举例: style & ~CS_NOCLOSE; 更常用的是 style & = ~ CS_CLOSE;#define CS_VREDRAW 0x0001#define CS_HREDRAW 0x0002#define CS_DBLCLKS 0x0008
2021-10-20 17:39:46
114
原创 在在VS2019里集成QT后编译出错:严重性 代码 说明 项目 文件 行 禁止显示状态错误 C3615 constexpr 函数
在VS2019里集成QT后编译出错:严重性 代码 说明 项目 文件 行 禁止显示状态错误 C3615 constexpr 函数“QAlgorithmsPrivate错误 C3615 constexpr 函数“QAlgorithmsPrivate::qt_builtin_ctz”不能生成常量表达式 (编译源文件 main.cpp),解决后编译出来的程序运行报错:this application failed to start because it could find or load QT platform
2021-09-23 19:17:36
2879
原创 C++11 多线程的join()和detach()的理解和实例
先来看看join的官方释义:The function returns when the thread execution has completed.This synchronizes the moment this function returns with the completion of all the operations in the thread: This blocks the execution of the thread that calls this function until th
2021-06-12 17:35:08
595
原创 QT调试的时候提示not in executable format:file format not recognized
刚开始学习Qt,在调试程序时提示not in executable format:file format not recognized在查找资料后发现是因为编译器(Compiler)使用了32 位版本的 MSVC,调试器(Debugger)却使用了64 位的 MinGW 的 GDB,从而 GDB 不能调试 32 位程序而报错。解决办法:在 Qt 的 工具 - 选项 - 构建和运行 - Debuggers 选择 CDB(Debugging Tools for Windows),不能自动检测到则手动添
2021-05-31 01:13:21
6948
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人