question regarding : _T(..) function
C / C++ / MFC
2
Posts
2
Posters
5
Views
1
Watching
-
Can anybody tell me why some programmers prefer MessageBox(_T("Hello world !")); to MessageBox("Hello World !") ?? What this _T(..) actually does ???? Regards Giorgi Moniava
Short answer:
_T
is a macro, and is one of the things you do to let the same source code build ANSI and Unicode binaries. Long answer: The Complete Guide to C++ Strings, Part I - Win32 Character Encodings[^] --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD