PCHAR到System :: String的转换 [英] PCHAR to System::String conversion

查看:81
本文介绍了PCHAR到System :: String的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将PCHAR和PWCHAR和 转换为System :: String?

how to convert PCHAR and PWCHAR and  to System::String?

推荐答案

>如何将PCHAR和PWCHAR和 转换为System: :String?

>how to convert PCHAR and PWCHAR and  to System::String?

在这种情况下,只需在String构造函数中传递指针即可.

In those cases, just pass the pointers in the String constructor.

对于其他转换,请查看marshal_as设施.

For other conversions, have a look at the marshal_as facilities.

戴夫


这篇关于PCHAR到System :: String的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆