471,354 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Convert System::String to BYTE

Hi,

is there any way to convert a managed System::String var to a BYTE pointer
(BYTE*)?

Thanks a lot
Peter
Jul 21 '05 #1
1 2531
Peter Schmitz wrote:
is there any way to convert a managed System::String var to a BYTE pointer
(BYTE*)?


System::Text::Encoding::GetEncoding(codepage)->GetBytes(mstr)

See: What is an ANSI string?
http://blog.kalmbachnet.de/?postid=19

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Nathan | last post: by
15 posts views Thread by Yifan | last post: by
2 posts views Thread by Imran Aziz | last post: by
1 post views Thread by Peter Schmitz | last post: by
4 posts views Thread by barnum | last post: by
12 posts views Thread by Peter | last post: by
reply views Thread by XIAOLAOHU | 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.