convert string to TCHAR code example
Example: convert string to TCHAR
std::string txt = "some content";
TCHAR* val = (TCHAR*)target.c_str();
or
TCHAR val = (TCHAR)target.c_str();
std::string txt = "some content";
TCHAR* val = (TCHAR*)target.c_str();
or
TCHAR val = (TCHAR)target.c_str();