Quote:
i have a string value and i want to convert string value to TCHAR value.
A string is a sequence of characters, while
TCHAR
is a single character (either
char
or
wchar_t
as already pointed out by
Richard), so you cannot convert.
As a wild guess, I suppose you need to convert from a string type to another string type. Then, have a loo at:
How to: Convert Between Various String Types | Microsoft Docs[
^].