_T is a macro that when _UNICODE is defined, takes the text within the parens and converts it to 16 bit characters. When _UNICODE is NOT defined, it evaluates to nothing. Using the macro has no effect when unicode is not enabled and therefore does not hurt anything by being there.
If you need more explanation I will be happy to help. just repost.
Actually, it can display many languages... including english. Unicode uses the basic ascii character set but expands after that to support 16 bit characters (0-255 equals all 8 bit values). Recently, I wrote an application in Unicode that displays in English,Spanish and Japanese. It is pretty neat. If you have any other questions, please post.
Don't forget that if you're using the _T macro, you should be using the "T" version of all the string-handling functions like _tprintf, _istalpha, _istdigit, _tchdir, _tcslen, etc.
I don't know, but I suspect that there are wide-character overloads for the C++ cout, cin, etc. functions. Anyone know for sure?
yes... there are wide character conversions but as you said, the "t" versions are better because they map to the correct 8bit or 16bit funciton based on UNICODE definition.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.