| QUOTE (xxxfubar187xxx @ Jun 22 2004, 05:28 PM) |
| I'll save you some time IGNORE KaMbiOkIkA's last post. |
Why? His code will convert a wide char to 8-bit characters.
The capital "S" is the key there. Examine M$ help documentation on printf format specifiers.
Yes thank you for pointing out the obvious.
MSDN:
The types C and S, and the behavior of c and s with printf functions, are MS extensions and are not ANSI compatible.
The way I described above is how we do it at MS.
| QUOTE (xxxfubar187xxx @ Jun 22 2004, 07:52 PM) |
Yes thank you for pointing out the obvious.
MSDN: The types C and S, and the behavior of c and s with printf functions, are MS extensions and are not ANSI compatible.
The way I described above is how we do it at MS. |
Well, it just seems there's bit of snippiness going on here... my point was that there are a number of ways to do the conversion, and KaMbiOkIkA's method should work fine, too. ;)
As for the way things are done at M$, well, I've seen quite a bit of that code, particularly CE code (having spent quite a bit of time developing automotive telematics systems), and I'd be wary about bragging about it :lol: ....but, I'm sure it's far better now than it was in the Moonraker/Thunderball days. :o