Maybe it's just late, but...
I'm working on a GapiDraw game, but I have a general question... Why is it that the following:
...results in outStr = "3" instead of "30"? In other words, I'm only getting the first digit into outStr no matter what I do. This is on the desktop, I haven't compiled for PocketPC yet.
Thanks all!
I'm working on a GapiDraw game, but I have a general question... Why is it that the following:
- Code:
int countdown_seconds = 30;
TCHAR outStr[10] = TEXT("");
swprintf((unsigned short*)&outStr;, L"%d", countdown_seconds);
...results in outStr = "3" instead of "30"? In other words, I'm only getting the first digit into outStr no matter what I do. This is on the desktop, I haven't compiled for PocketPC yet.
Thanks all!