How to convert #defined string literal to a wide string literal? [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How to convert concatenated strings to wide-char with the C preprocessor? I have a string literal defined using a #define: #define B "1234\0" How do I use this definition to get this wide string literal at compile time?: L"1234\0" (just the #define d string literal with L prepended to make it into a wide string). I tried this: #define MAKEWIDE(s) L##s but this generates LB . 回答1: Token pasting needs an