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

浙公网安备 33010602011771号