What does _T stands for in a CString

CodeRider picture CodeRider · Mar 19, 2013 · Viewed 50.7k times · Source

What does the "T" represents in a string. For example _T("Hello").I have seen this in projects where unicode support is needed.What it actually tells the processor

Answer

MvG picture MvG · Mar 19, 2013

_T stands for “text”. It will turn your literal into a Unicode wide character literal if and only if you are compiling your sources with Unicode support. See http://msdn.microsoft.com/en-us/library/c426s321.aspx.