469,631 Members | 1,643 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

How to convert unmanaged string with char array type to managed string with char array type?

Hello,

How to convert an unmanaged string with char array type to a managed string
with char array type?
Thanks.

Regards,
Tsung-Yu
Nov 17 '05 #1
1 4188
have a look at the System::Runtime::InteropServices::Marshal class

the func PtrToStringAuto() might do what you want

you have to issue a

#using <mscorlib.dll>

in the managed C++ file

Regards, Eckart
joye wrote:
Hello,

How to convert an unmanaged string with char array type to a managed string
with char array type?
Thanks.

Regards,
Tsung-Yu

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Mark Jerde | last post: by
3 posts views Thread by Tommy Svensson \(InfoGrafix\) | last post: by
17 posts views Thread by =?Utf-8?B?U2hhcm9u?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.