If i receieve a bytedata array generated from a visual basic application on
a remoate machine via tcp/ip,
How can I convert that back to string ??
Hi Ran,
I have spoken to one of the developers and here is some information that
may help you out. You can try the following and see helps to solves
your problem.
char *p = &bytedata[0];
If it’s ascii data ( windows machines are always LE but byte data
doesn’t have to be flipped). If it’s windows unicode (16-bit) copy the
2 byte characters into a 4 byte/character array and call wcstombs().
You may be lucky, but you may also have to swap the bytes if the qnx
machine is BE, depending on how the data was stored in memory on the
windows side.
Good Luck!
Regards
Brenda
ran zhang wrote:
If i receieve a bytedata array generated from a visual basic application on
a remoate machine via tcp/ip,
How can I convert that back to string ??