wchar_t is evil... it keeps killing my char*'s
wchar_t is evil... it keeps killing my char*'s
i can't just use a typecast to get my char*'s converted to wchar_t*'s. that produces random characters. i can't seem to find any function to convert it properly either. can anyone help me?
Yes, it's a big problem...
I do it this way:
I also did not find another solution to this...
I do it this way:
Code: Select all
wchar_t wc[100];
char c[100];
for(int t = 0; wc[t] != '\0'; t++)
c[t] = (unsigned char)wc[t];
for(int t = 0; c[t] != '\0'; t++)
wc[t] = c[t];
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java