03 2019 档案

摘要:具体解释下面这篇博客总结的已经非常好了,我就不复制了:http://www.cnblogs.com/cielosun/p/6674431.html#12-%E5%8F%AF%E8%BE%BE%E6%80%A7%E5%88%86%E6%9E%90 阅读全文
posted @ 2019-03-15 09:55 李正浩 阅读(200) 评论(0) 推荐(0) 编辑
摘要:例子#include #include#include#include "CPPDemo.h"#include#include#includeusing namespace std;int main() { vector num; int i = 1; unsigned in... 阅读全文
posted @ 2019-03-02 19:15 李正浩 阅读(657) 评论(0) 推荐(0) 编辑
摘要:interior_ptr当垃圾回收器移动对象时,Interior pointer能随之移动,并始终指向该对象。但是如果把这个指针返回给外部函数,那么当垃圾回收时(垃圾回收期间会压缩对象,),对象地址发生改变,指针会指向错误的地址。pin_ptr在外部调用托管堆中指针时,垃圾回... 阅读全文
posted @ 2019-03-01 21:42 李正浩 阅读(663) 评论(0) 推荐(0) 编辑
摘要:例子// here normal pointerP* ptr = new P; // usual pointer allocated on heapP& nat = *ptr; // object on heap bind to native object//.. here ... 阅读全文
posted @ 2019-03-01 21:23 李正浩 阅读(729) 评论(0) 推荐(0) 编辑
摘要:用途通过使用C++ + Opencv 编写算法,然后用WPF(C#)编写程序界面,实现交互可以参考MSDN文档:https://docs.microsoft.com/en-us/cpp/windows/pin-ptr-cpp-cli?view=vs-2017项目结构 代码C... 阅读全文
posted @ 2019-03-01 20:10 李正浩 阅读(1670) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up light_mode palette
选择主题