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 = function();
So, number 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 = (char)1; MessageBox(hwnd, &cha, "Title", MB_OK);
Result: ÿÿ, or other jibberish.
Little help here please : - )