However... as I don't have Windows I cannot test it with the WinAPI. Maybe it's rather a problem with character encoding? [This is just what I guess, however it's unlikely, as UNICODE should take away the need for different encodings...]
Another point: Why don't you just use something like Python+Tkinter? Dunno, but developing directly with the WinAPI seems a bit painful...
—
Take all of me
The desires that keep burning deep inside
Cast them all away
And help to give me strength to face another day
I am ready
Help me be what I can be
Sounds like a lot of trouble
Sounds like a lot of trouble ;)
I just tested your method #2, and the following code worked fine for me:
#include <wchar.h>
int main(int argc, char** argv)
{
wchar_t test[32];
swprintf(test, 32, L"%d", 42);
wprintf(test);
return 0;
}
However... as I don't have Windows I cannot test it with the WinAPI. Maybe it's rather a problem with character encoding? [This is just what I guess, however it's unlikely, as UNICODE should take away the need for different encodings...]
Another point: Why don't you just use something like Python+Tkinter? Dunno, but developing directly with the WinAPI seems a bit painful...
Take all of me
The desires that keep burning deep inside
Cast them all away
And help to give me strength to face another day
I am ready
Help me be what I can be