tstring
has been types this way so that you'll get either ascii or Unicode strings depending on your compilation flags.
To initialize the string do something like this:
tstring greeting = _T("hello, world");
The _T
macro will convert your string to a wide string by prefixing it with L
in a Unicode build, otherwise it will leave it as a regular ascii string.