Ad

How To Use Wide String Literals In C++ Without Putting L In Front Of Each One

- 1 answer

You'll have to forgive my ignorance, but I'm not used to using wide character sets in c++, but is there a way that I can use wide string literals in c++ without putting an L in front of each literal?

If so, how?

Ad

Answer

No, there isn't. You have to use the L prefix (or a macro such as _T() with VC++ that expands to L anyway when compiled for Unicode).

Ad
source: stackoverflow.com
Ad