如何将char*转换为System::string^

9
1个回答

19

你可以这样做:

String^ sCertificate;
sCertificate = gcnew String(pcertificate);

1
这个可以运行...正在尝试找到相反的方向(从字符串到Char*)。 - Scott Solmer

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接