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!

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.