But the value in ASCII.data() or ASCII.c_str(), is not what i need, i need the value in ASCII... and when i try to convert it to Char i lose some data.
As i said... if you have a char type, what ever you want, char, wchar, signed or unsigned, the hexadecimal code 0x00 is the end !
Try the code that i wrote with your var, is the same !
My problem is simple... i have a variable STRING Type, and i need to send the data to a tcp port. The function SEND, request a char parameter... but i have a string one.
Now, if i try to send the string.c_str() or if i try to convert the variable into any type of char, like wchar or unsigned char... some of the data lost in the transfer... that is becouse im sending somes null strings like DEC(05) or HEX(05).