unicode
-
Hi, following syntax has wszWallpaper as unicode string.
wcout << **L**"Wallpaper path is:\n " << wszWallpaper;
Now wallpaper path is prefixed with "L" to interpret the string as unicode. can it be prefixed with "_T" aswcout << **_T**"Wallpaper path is:\n " << wszWallpaper;
since TCHAR can be used to present ANSI as well as unicode. Please follow up. Leya -
Hi, following syntax has wszWallpaper as unicode string.
wcout << **L**"Wallpaper path is:\n " << wszWallpaper;
Now wallpaper path is prefixed with "L" to interpret the string as unicode. can it be prefixed with "_T" aswcout << **_T**"Wallpaper path is:\n " << wszWallpaper;
since TCHAR can be used to present ANSI as well as unicode. Please follow up. Leya -
Hi, following syntax has wszWallpaper as unicode string.
wcout << **L**"Wallpaper path is:\n " << wszWallpaper;
Now wallpaper path is prefixed with "L" to interpret the string as unicode. can it be prefixed with "_T" aswcout << **_T**"Wallpaper path is:\n " << wszWallpaper;
since TCHAR can be used to present ANSI as well as unicode. Please follow up. Leyayang__lee wrote:
can it be prefixed with "_T" as wcout << _T"Wallpaper path is:\n " << wszWallpaper;
actually, yes, but not like you do. use _T macro like this : wcout << _T**("Wallpaper path is:\n ")** << wszWallpaper; BTW, be aware that
TCHAR
is defined aswchar_t
when UNICODE is defined, ,but is defined tochar
only, if the project is building Single bytes strings...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]