J
John Doe
Hi,
I would like to know if it would be possible to replace _T() macros used
on windows to delcare an ANSI string or a unicode one :
#ifdef UNICODE
#define __TEXT(quote) L##quote // r_winnt
#else
#define __TEXT(quote) ##quote
#endif
#define _T(x) __TEXT(x)
I was thinking of something like
_Text<char>("some text") that would return "some text"
and
_Text<wchar_t>("some text") that would return L"some text"
What is possible to do ?
I would like to know if it would be possible to replace _T() macros used
on windows to delcare an ANSI string or a unicode one :
#ifdef UNICODE
#define __TEXT(quote) L##quote // r_winnt
#else
#define __TEXT(quote) ##quote
#endif
#define _T(x) __TEXT(x)
I was thinking of something like
_Text<char>("some text") that would return "some text"
and
_Text<wchar_t>("some text") that would return L"some text"
What is possible to do ?