Hi,
I have a problem that's a little bit off topic...
How do you compare two wchar_t strings ???
I tried it like this:
if(strcmp((char*)wString1, (char*)wString2) == 0){
}
But it compares only the first letters of the strings !!!
Is the a special function for this, like swprintf() for printf() ???
Cu, Acki
comparing wchar_t ???
Yes, there is.
Code: Select all
int wcscmp(
const wchar_t *string1,
const wchar_t *string2
);
The only thing to fear is running out of beer!