随笔分类 -  C++

1 2 3 4 5 ··· 7 下一页
摘要:char* str_to_char_array(const std::string& str) { std::unique_ptr<char> _char_array(new char[str.length() + 1]); char* char_array = _char_array.releas 阅读全文
posted @ 2025-11-18 14:52 txwtech 阅读(24) 评论(0) 推荐(0)
摘要:qt vs无法打开包括文件: “HalconCpp.h 严重性 代码 说明 项目 文件 行 禁止显示状态错误 C1083 无法打开包括文件: “HalconCpp.h”: No such file or directory 一般情况正常包含目录即可解决问题 其它情况: 安装了多个msvc(by tx 阅读全文
posted @ 2025-10-18 22:07 txwtech 阅读(20) 评论(0) 推荐(0)
摘要:std::string转char* char* str_to_char_array(const std::string& str) { std::unique_ptr<char> _char_array(new char[str.length() + 1]); char* char_array = 阅读全文
posted @ 2025-10-16 22:26 txwtech 阅读(20) 评论(0) 推荐(0)
摘要:Microsoft Visual C++ Redistributable(系统运行库,简称MSVC,VB/VC)是Windows操作系统应用程序的基础类型库组件。 Microsoft Visual C++运行库,Windows系统装机必备组件,这是官方版安装包。 Microsoft Visual C 阅读全文
posted @ 2025-10-14 08:09 txwtech 阅读(1343) 评论(0) 推荐(0)
摘要:dll查看依赖文件dumpbin.exe: D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64>dumpbin.exe /dependents 阅读全文
posted @ 2025-10-14 07:58 txwtech 阅读(18) 评论(0) 推荐(0)
摘要:dllexp.exe - 快捷方式 dllexportviewer_v1.66 阅读全文
posted @ 2025-10-10 14:32 txwtech 阅读(9) 评论(1) 推荐(0)
摘要:https://blog.csdn.net/qq_40188120/article/details/151722342 阅读全文
posted @ 2025-09-29 16:55 txwtech 阅读(11) 评论(0) 推荐(0)
摘要:py转pyd https://blog.csdn.net/qq_24946843/article/details/127241500 https://blog.csdn.net/tiankaiwentiankaiwen/article/details/140229065 c++调用pyd https 阅读全文
posted @ 2025-09-02 22:30 txwtech 阅读(10) 评论(0) 推荐(0)
摘要:win7 vc6安装兼容问题与link可能无法连接lib库问题 https://jingyan.baidu.com/article/e52e361584b3a940c60c51d3.html 在Windows7环境下使用VC++6.0时,安装过程中需特别注意。安装时,应选择“Custom”模式,首先 阅读全文
posted @ 2025-07-07 09:01 txwtech 阅读(25) 评论(1) 推荐(0)
摘要:无法解析的外部符号 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Halcon::Hobject::Hobject(int)" (__imp_??0Hobject@Halcon@ 阅读全文
posted @ 2025-06-27 07:52 txwtech 阅读(34) 评论(0) 推荐(0)
摘要:编译aa.lib,编译报错无法打开aa.lib 多项目共用aa.lib时,如果设置了通用配置。 bb的项目需要调用aa.lib,设置了通用配置调用aa.lib aa项目打开后,也会去调用aa.lib,导致报错。 其它项目调用aa.lib,就应该选择,项目-》属性-》链接器-》输入添加lib。不要从属 阅读全文
posted @ 2025-05-17 10:26 txwtech 阅读(61) 评论(0) 推荐(0)
摘要:1>cfile_operation.obj : error LNK2019: 无法解析的外部符号 "public: __cdecl QrInfo::QrInfo(void)" (??0QrInfo@@QEAA@XZ),函数 "public: class QrInfo * __cdecl CFile_ 阅读全文
posted @ 2025-04-10 21:21 txwtech 阅读(49) 评论(0) 推荐(0)
摘要:严重性 代码 说明 项目 文件 行 禁止显示状态错误 C2872 “ACCESS_MASK”: 不明确的符号 CdtxwVisionLib C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\ktmw32.h 125 Open 阅读全文
posted @ 2025-01-13 10:18 txwtech 阅读(263) 评论(0) 推荐(0)
摘要:c++ std::string contains实现 #include <iostream> #include <string> bool contains(const std::string& str, const std::string& substr) { return str.find(su 阅读全文
posted @ 2025-01-10 08:05 txwtech 阅读(277) 评论(0) 推荐(0)
摘要:matchTemplate执行后是否需要归一化处理取决于所使用的匹配方法。‌ OpenCV的matchTemplate函数提供了多种匹配方法,每种方法对结果的处理方式不同: ‌平方差匹配(cv2.TM_SQDIFF)‌:此方法通过计算模板与图像区域之间的平方差来进行匹配。平方差越小,匹配程度越高。最 阅读全文
posted @ 2025-01-09 08:18 txwtech 阅读(96) 评论(0) 推荐(0)
摘要:c++ string转int #include <string>#include <iostream> int main() { std::string str = "123"; int num = std::stoi(str); std::cout << num << std::endl; // 阅读全文
posted @ 2025-01-09 07:56 txwtech 阅读(20) 评论(0) 推荐(0)
摘要:C++ 提供了丰富的字符串操作功能,以下是一些常用的字符串操作方法: 使用标准库 <string> 声明和初始化 cpp 复制 #include <string> std::string str1 = "Hello"; std::string str2("World"); std::string s 阅读全文
posted @ 2025-01-08 08:00 txwtech 阅读(1152) 评论(0) 推荐(0)
摘要:std::chrono 是 C++11 引入的时间库,用于进行时间的计算与表示。它不是标准库的一部分,但是被包含在 <chrono> 头文件中。 使用 std::chrono 的基本步骤如下: 使用现有的时间点或时间间隔来初始化 std::chrono 的时间点或时间间隔对象。 使用 std::ch 阅读全文
posted @ 2025-01-07 13:14 txwtech 阅读(141) 评论(0) 推荐(0)
摘要:std::string转wchar_t,WCHAR #include <string> #include <windows.h> std::string str = "Your ASCII or UTF-8 string"; int wstr_size = MultiByteToWideChar(C 阅读全文
posted @ 2025-01-07 11:06 txwtech 阅读(128) 评论(0) 推荐(0)
摘要:template <typename T1, typename T2> class AbsLess { public: bool operator()(T1& t1, T2& t2) { return t1 < t2; } }; operator加(),是仿函数 https://www.cnblog 阅读全文
posted @ 2025-01-05 22:21 txwtech 阅读(19) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页