I am trying to pass a const char* to a windows SetThreadDescription() function.
int pthread_setname_np(HANDLE thread, const char* name) {
return SetThreadDescription(thread, name);
}
and I am getting an error
'HRESULT SetThreadDescription(HANDLE,PCWSTR)': cannot convert argument 2 from 'const char *' to 'PCWSTR'
Of course I've stumbled into this and checked the character set and it was already set to Use Multi-Byte Character Set. Is there a way to fix this?