例えば:
// This will become either SomeMethodA or SomeMethodW,
// depending on whether _UNICODE is defined.
SomeMethod( _T( "My String Literal" ) );
// Becomes either AnotherMethodA or AnotherMethodW.
AnotherMethod( _TEXT( "My Text" ) );
私は両方を見てきました。_T は簡潔にするため、_TEXT は明確にするためのようです。これは単に主観的なプログラマーの好みですか、それともそれよりも技術的なものですか? たとえば、一方を他方の上に使用すると、コードは特定のシステムや古いバージョンのヘッダー ファイルに対してコンパイルされませんか?