0

Hello again guys,

I've got kind of a noob question.

I have a wchar[260] and I need to compare it with a char*

and im getting the error

error C2664: '_stricmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *'


Thanks!

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Narue
0

How are we going to know that what mistake have you done. Write the code here and i would definetly try to guide you. .

0

error C2664: '_stricmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *'

That's a perfectly rational error. Your string is of type WCHAR and _stricmp clearly only accepts strings of char. On the assumption that you're using a compiler which supports it, try _wcsicmp instead of _stricmp.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.