Hello,
it complains because retMessage is of type char* . wcscpy needs type wchar_t . There is no implicit conversion from char* to wchar_t*.
As I told you before in another thread, I suggest you to use TCHAR and the TCHAR-routines.
Regards, Guido
EDIT: oh sorry, you use strcpy already. With char* and "test" the compiler will not complain. Is it really the code that you showed us? Do you really use char* and "test ok" in strcpy?