M
Magix
Hi,
I would like to convert a string to byte array.
I'm using Win32 Visual C++.
Thanks.
I would like to convert a string to byte array.
I'm using Win32 Visual C++.
Thanks.
Magix said:
Not quite sure what you want, so I'll point out that C++ strings haveI would like to convert a string to byte array.
Tim said:Not quite sure what you want, so I'll point out that C++ strings have
a c_str() member function.
Rolf Magnus said:And a data() function, in case a terminating \0 is not needed.
Rolf Magnus said:And a data() function, in case a terminating \0 is not needed.
it's something like:
byte ConvertStringtoByteArray(CString s) []
{
//add code here
// return byte array pointer
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.