<p>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?</p>

<p>If so, how?</p>

Why do you not want to prefix string literals with an L?  It's quite simple - strings without an L are ANSI strings (
```
const char*
```
), strings with an L are wide-character strings (
```
const wchar_t*
```
).  There is the
```
TEXT()
```
macro, which makes a string literal into an ANSI or a wide-character string depending on of the current project is set to use Uncode:
```
```
#ifdef UNICODE
#define TEXT(s) L ## s
#else
#define TEXT(s) s
#endif
```
```
There's also the
```
_T()
```
macro, which is equivalent to
```
TEXT()
```
.