I think it does not work.
Actually what I wanted is rather simple.
In C/C++, it is;
byte byteData[500] = .....
CString szMyString = (CString) byteData
It is that simple and straight forward because what is inside the byte array
is exactly the same char[]. Even a simple memcpy will work.
Any ideas on how to implement these simple object convertion?
"Mattias Sjögren" <(E-Mail Removed)> wrote in message
news:eiDpD$(E-Mail Removed)...
>
>>I would like to ask on how to convert array of bytes, Byte[] into String?
>
> Use System.Text.Encoding (or one of the classes derived from it).
> Which encoding to use depends on what's on your byte array.
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.