This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing
TCHAR is a Microsoft-specific typedef for either char or wchar_t (a wide character).
Conversion to char depends on which of these it actually is. If TCHAR is actually a char, then you can do a simple cast, but if it is truly a wchar_t, you'll need a routine to convert between character sets. See the function MultiByteToWideChar()
The simplest way is to use the conversion macros:
MSDN