cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What is this variable?
What is this variable?
Nov 28, 2018 at 5:32pm UTC
vysero
(100)
I am just wondering what this _T("") is doing in the code below:
CTString firmwareVer = _T(
""
);
Last edited on
Nov 28, 2018 at 5:32pm UTC
Nov 28, 2018 at 5:36pm UTC
jonnin
(11436)
the _T is telling it what type of character string it is.
_T appears to be a macro for the L specifier. Why it exists is a total mystery to me.
The L specifier tells the compiler that a string literal is a wide string.
so that is the same as
firmwarever = L"";
Last edited on
Nov 28, 2018 at 5:38pm UTC
Nov 28, 2018 at 5:38pm UTC
salem c
(3700)
https://msdn.microsoft.com/en-us/library/dybsewaf.aspx
It allows you to seamlessly switch between ANSI and UNICODE mode.
Topic archived. No new replies allowed.