摘要: #include <iostream> class Ca { public: virtual void print() { std::cout << "Ca::print" <<std::endl; } void print2() { print(); } }; class Cb :public C 阅读全文
posted @ 2021-01-31 19:05 iwetuan 阅读(810) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/smstong/article/details/44338837 声明时注意 这样才可以导出接口 class FBX3DX_EXPORT Widget :public QWidget 阅读全文
posted @ 2021-01-27 21:13 iwetuan 阅读(186) 评论(0) 推荐(0)
摘要: 使用动态库发布的一个好处是,如果只是更新了接口的内部实现,可以直接替换动态库而不需要像静态库一样加入到编译环境重新链接 CMakeLists.txt cmake_minimum_required(VERSION 3.17) project(dtest) include(GenerateExportH 阅读全文
posted @ 2021-01-26 12:45 iwetuan 阅读(1251) 评论(0) 推荐(0)
摘要: OCC的软件版本为7.5 编译器为VS2013 只编译了必须的FreeType和tcltk 编译tcltk时,参考官方编译手册 如果你需要具体的编译过程, 请联系iwetuan@126.com (https://kdocs.cn/l/ce5cGGrOCT9A [金山文档] OCCT7.5_VS201 阅读全文
posted @ 2021-01-20 19:34 iwetuan 阅读(379) 评论(0) 推荐(0)
摘要: 打开 语法 cl /d1reportSingleClassLayoutXXX yyy.cpp 注意那个是数字 1 用例 cl /d1reportSingleClassLayoutV3 vbptr.cpp 输出结果 vbptr.cpp vbptr.cpp: warning C4819: 该文件包含不能 阅读全文
posted @ 2021-01-11 14:49 iwetuan 阅读(388) 评论(0) 推荐(0)
摘要: ??疑问点,为何在获取VBTable的偏移地址时,在x64中需要使用 int**指针类型呢, 莫非VBTable的实现,在VS中使用的 int[] 类型,而不是跟着x86,x64改变? // vbptr.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include 阅读全文
posted @ 2021-01-11 14:45 iwetuan 阅读(112) 评论(0) 推荐(0)
摘要: 转载 VS初始化,恢复到刚安装完成的状态 第一个方法:(已测试成功) 输入DOS命令: CD Common7/IDE 回车 输入:devenv.exe /setup /resetuserdata /resetsettings,重置Visual Studio 即可 执行工作之后,重新打开VS会出现安装 阅读全文
posted @ 2020-12-31 12:17 iwetuan 阅读(253) 评论(0) 推荐(0)
摘要: 由于QVector没有自定义删除器的功能,直接调用析构函数会导致内存泄漏 故使用指针方式,递归删除节点 我们的类还禁止在栈中定义变量,并且将析构函数设置为私有,禁止使用new的操作 所以申请对象使用entity::New,使用obj.Delete递归释放子节点内存 #include <QCoreAp 阅读全文
posted @ 2020-12-30 11:30 iwetuan 阅读(352) 评论(0) 推荐(0)
摘要: // ConsoleApplication6.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <string> #include <deque> #include <vector> #include <arra 阅读全文
posted @ 2020-12-11 12:43 iwetuan 阅读(325) 评论(0) 推荐(0)
摘要: 临时使用socks代理apt-get的方法 sudo apt-get -o Acquirehttpproxy="socks5h://127.0.0.1:1089/" upgrade -y sudo apt-get -o Acquirehttpproxy="socks5h://127.0.0.1:10 阅读全文
posted @ 2020-08-26 21:03 iwetuan 阅读(646) 评论(0) 推荐(0)