Original Post
Hi,
Does anyone know what _T means in Windows directx code samples? Is this a macro of some sort? Thanks!
quote:
Original post by Silverbolter
Thanks! That was a quick response, I spent 15 minutes searching and gave up hehe.
Its quite obsqure, and undecriptive, that isn't good...
quote:
Original post by Coderquote:
Original post by Silverbolter
Thanks! That was a quick response, I spent 15 minutes searching and gave up hehe.
Its quite obsqure, and undecriptive, that isn't good...
Don't forget the header file <tchar.h> for some more insights. Under unicode builds (UNICODE globally defined) those _T( "boo" ) strings turn into L"boo" strings which are stored in wchar_t's instead of char's (a wchar_t is a C++ 16-bit character type)
Muhammad Haggag,
Optimize
[edit]Angle brackets
[edited by - Coder on May 14, 2004 11:16:14 PM]
quote:
After a bit of my own research, is it safe for me to say that std::string is unicode by default, and converts to "standard" ASCII strings when needed? Am I getting this all wrong?
typedef std::basic_string<TCHAR> tstring;
tstring boo( _T( "Some text" ) );
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more