ifmet | 偕臧

Mi AX6S brush OpenWrt, and flash back to the official website firmware

Original link: https://ifmet.cn/posts/4d3a9f54/ Brief description: Leisure, tossing about the newly purchased Xiaomi AX6S, flashing OpenWrt , and recording the first contact. [TOC] This article was originally published on ” Kai Zang’s Small Station ” and is reproduced here simultaneously. background miwifi_rb03_firmware_3e872_1.0.54.bin [Official 2022.08.24] miwifi_rb03_firmware_stable_1.2.7.bin [Official 2022.03] can flash the firmware, and enable telnet by default […]

Mi AX6S brush OpenWrt, and flash back to the official website firmware Read More »

C++ flag bit usage: check, add, delete

Original link: https://ifmet.cn/posts/65a4931a/ Brief description: When using C++ / Qt , you will occasionally encounter some properties that need to be set. Record them here for the convenience of the next time. // C++ 标志位flages & WS_POPUP // 检查一个标志位flages |= WS_POPUP // 设置一个标志位flages &= ~ ( WS_POPUP | WS_SYSMENU ) // 除去多个标志位// QT 标志位, 除了上面之外,还可用此函数setWindowFlags

C++ flag bit usage: check, add, delete Read More »

Three ways to deduplicate vector in STL

Original link: https://ifmet.cn/posts/be0b5490/ Brief description: Deduplicate the elements in std::vector , where the elements are custom structure types. Provide three ideas, with detailed examples and analysis C++ unique function causes vector to change c++ vector deduplication custom structure [TOC] This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here

Three ways to deduplicate vector in STL Read More »

Misleading indentation; statement is not part of the previous ‘if’

Original link: https://ifmet.cn/posts/28b03c75/ Brief description: The Qt used has been upgraded to 5.15.2, and then the IDE compiles the warning ⚠ as follows, the obsessive-compulsive disorder has been committed and must be eliminated. [TOC] This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously. warn screenshot.cpp:164:2: Misleading indentation;

Misleading indentation; statement is not part of the previous ‘if’ Read More »

CMake sets Target output directory and suffix

Original link: https://ifmet.cn/posts/4af498c8/ **Brief description: ** CMake sets Target output directory and suffix name set ( EXECUTABLE_OUTPUT_PATH “xxx/path” ) # 可执行文件的输出目录set ( LIBRARY_OUTPUT_PATH “xxx/path” ) # 库文件的输出目录set ( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG “xxx/path” ) # debug 可执行文件的输出目录set ( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE “xxx/path” ) # release 可执行文件的输出目录set ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG “xxx/path” ) # debug 库文件的输出目录set ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE “xxx/path” ) # release 库文件的输出目录set

CMake sets Target output directory and suffix Read More »

Tutorial on the usage of BUILD_SHARED_LIBS and CMAKE_BUILD_TYPE in CMake

Original link: https://ifmet.cn/posts/29f14999/ **Brief description: ** Originated from #2 , it was found that the debug compilation failed, but the release compilation succeeded, because the default generated product did not match the expectation, so a PR was mentioned. Found two variable knowledge points related to CMAKE_BUILD_TYPE and BUILD_SHARED_LIBS in CMake. [TOC] This article was originally

Tutorial on the usage of BUILD_SHARED_LIBS and CMAKE_BUILD_TYPE in CMake Read More »

The difference between WINUSERAPI and WINAPI in Windows programming

Original link: https://ifmet.cn/posts/ec046916/ Brief description: The respective meanings of WINUSERAPI and WINAPI frequently encountered in Window API. [TOC] This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously. background In the research to realize the cross-platform AcrylicWindow acrylic (similar to transparent frosted) effect, when calling the Windows API,

The difference between WINUSERAPI and WINAPI in Windows programming Read More »

Difference between WINUSERAPI and WINAPI

Original link: https://ifmet.cn/posts/71bcb033/ Brief description: The respective meanings of WINUSERAPI and WINAPI frequently encountered in Window API. [TOC] This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously. background In the research to realize the cross-platform AcrylicWindow acrylic (similar to transparent frosted) effect, when calling the Windows API,

Difference between WINUSERAPI and WINAPI Read More »

After creating QKeySequenceEdit(), it shows garbled characters

Original link: https://ifmet.cn/posts/17760087/ Brief description: Created Qt QKeySequenceEdit shortcut key edit box, showing square garbled characters. [TOC] This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously. analyze ? win10 21H2 ? Qt 5.12.11 ? Visual Studio 2019 The reason for the garbled blocks of spoken words is

After creating QKeySequenceEdit(), it shows garbled characters Read More »

The meaning and difference of LPSTR/LPCSTR/LPTSTR/HWND/HANDLE/HMODULE/HINSTANCE etc.

Original link: https://ifmet.cn/posts/5020c5e7/ Brief description: Some common types of meanings, differences and explanation definitions in Windows programming PVOID and LPVOID LPSTR / LPCSTR / LPTSTR / LPCTSTR / LPWSTR / LPCWSTR HWND / HANDLE / HMODULE / HINSTANCE distinguishing mark L –> long; long and int have the same length under WIN32. So there is

The meaning and difference of LPSTR/LPCSTR/LPTSTR/HWND/HANDLE/HMODULE/HINSTANCE etc. Read More »

Lambda Expression Details

Original link: https://ifmet.cn/posts/9ece64cc/ Brief Description: Explain the basic usage, principles, and usage scenarios of Lambda expressions in detail. [TOC] This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously. Lambda expressions grammar [captures](params) mutable exception -> ret {body} • Capture table columns, capturing variables in the current scope,

Lambda Expression Details Read More »

Signal difference between clicked, pressed, released, toggled, and triggered of QAbstractButton

Original link: https://ifmet.cn/posts/c554435b/ Brief Description: Explain the difference between the following signals QAbstractButton: ①clicked ② pressed ③ released ④ toggled QToolButton: ① triggered QAction: ① changed ② hovered ③ toggled ④ triggered [TOC] This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously. outline Signal difference of QAbstractButton

Signal difference between clicked, pressed, released, toggled, and triggered of QAbstractButton Read More »

Project compilation failed due to Microsoft SDK!

Brief description: Wow, Kaka, this time I caught Microsoft win10 , this time it also affected my writing code . Projects compiled with Release X86 will succeed, while switching to Release X64 will fail. Error (active) E0147 declaration is incompatible with “BOOLEAN _BitScanForward” (declared at line 2825 of “C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\winnt.h”) C:\ Program Files

Project compilation failed due to Microsoft SDK! Read More »