首页 > 解决方案 > 如何将 System::Int64^ 转换为 std::int64_t (c++)?

问题描述

我试过使用 marshal_as (下面的代码),但它不支持这种类型的转换。我曾尝试研究解决方案,但找不到。

#include <msclr\marshal_cppstd.h>

std::int64_t stdNum = marshal_as<std::int64_t>(sysNum);

标签: c++winforms

解决方案


推荐阅读