MichaelGuennewig@gmx.de (Michael Guennewig) writes:
Variant 1: use simply a char, let compiler auto-convert to WCHAR Variant 2: use a WORD Variant 3: use L'.' construct and cast to WCHAR Variant 4: use L'.' construct
Variant 1 is best. There is no need to add casts or L prefixes, and it makes the code harder to read. Of course this only works for 7-bit ASCII chars, but we shouldn't use anything else in character constants anyway.