I have a C++ overloaded function and one of its variants receives a wstring as a parametre, but when I call it like myfunc(L"Some text"), the compiler complains that there is no variant of the function which accepts wchar_t *.
What should I do?
LATER EDIT:
Lucru();
Lucru(short,short,short,short,wstring,wstring,wstring,wstring,wstring,wstring);
This is how the function looks in its declaration. As this suggests, it is a constructor function for a class…
Construct the wide character string explicitly: