Hi all,
This is my first message!
Using C++ standard libraries, I want to convert a string to a byte array and a byte array to the string. How can I do that?
I did it in C# .NET as the following:
What is the C++ way of doing the same thing as .NET GetBytes method did?
Thanks at all,
yabansu
This is my first message!
Using C++ standard libraries, I want to convert a string to a byte array and a byte array to the string. How can I do that?
I did it in C# .NET as the following:
Code:
string msg = "Hello!"; byte[] buffer = new byte[msg.Length]; System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); buffer = encoding.GetBytes(msg);
Thanks at all,
yabansu
Comment