Hi,
I'm having some frustrating issues with char/strings.
I have a function which returns an unsigned short integer, the unsigned short integer is ALWAYS 1 char long. So if I try this code:
number[2] = function();
So, number[2] should give me the number I want, however, it gives me weird characters.
When I try this with a string it's the same result.
I also tried this:
cha[2] = (char)1;
MessageBox(hwnd, &cha[2], "Title", MB_OK);
Result: ÿÿ, or other jibberish.
Little help here please : - )
Thanks