c++ - 如何将 System::Int64^ 转换为 std::int64_t (c++)?
问题描述
我试过使用 marshal_as (下面的代码),但它不支持这种类型的转换。我曾尝试研究解决方案,但找不到。
#include <msclr\marshal_cppstd.h>
std::int64_t stdNum = marshal_as<std::int64_t>(sysNum);
解决方案
推荐阅读
- linux - 我尝试重新安装yarn,但重新安装后发现这个问题,错误:找不到模块'/home/fiii/.yarn/releases/yarn-1.22.17.cjs'
- python-3.x - Python UDP数据包
- linux - linux:对内核模块的ioctl请求超时
- flutter - 实施 AdMob 时,如何在测试和生产 AdMob 设置之间切换?
- python - 列表生成了多个 qrs,但我想用与列表相同的名称保存它们
- javascript - 如何在node.js中的上一行之后捕获下一个尖
- c++ - 从文本文件中读取一行时,开头出现额外字符
- makefile - gprof 仅生成平面轮廓
- c++ - 如何在 C++ 的类构造函数中定义外部结构?
- cloud - 可以将 CNAME 指向带有查询参数的参数化 URL 吗?