|
-
May 28th, 1999, 11:00 PM
#1
Please Help!!!!
How to compare a wide string with a const char* ???
unsigned short* wideString;
wcscmp(wideString, "myName") won't work!!!! even with casting!
Any help is much much appreciated!!!
-
May 31st, 1999, 12:10 AM
#2
Re: Please Help!!!!
Don't try type-casting!!! All it will do is convince compiler that "myName" is a wide string
which it is not
So convert const char * to wchar * and then use wcscmp.
I don't remember the exact name of the function but I think it starts with mbcs...
-
May 31st, 1999, 12:19 AM
#3
Re: Please Help!!!!
Have you tried this:
wcscmp(wideString, L"myName");
The 'L' converts the string to a wide string.
Wayne
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|