472,124 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,124 software developers and data experts.

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 4267
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.