It seems you're facing with 2 different errors.
1.You do not know differences between char and wchar_t.
2.You didnt check your pasted "RenderText" function.
First of all, wcsmp is a C function that compares two utf16 (wide-character) strings. In the screen shot you've provided, it seems you're trying to push char* to wcsmp function which will not work. You need to use wchar_t if you want to use wcsmp. In the other hands using string compare will eats a lot performance. Instead of comparing 2 strings, just get their hash and check if they equal or not...
For your other error, I cant help you without seeing what is your RenderText code and how you're trying to call it.