阅读:1090回复:3
#define的一个疑问
#define NT_DEVICE_NAME L"DeviceHelloWorld" 中L 是怎么回事?
|
|
沙发#
发布于:2005-01-24 13:48
Unicode码的意思
|
|
板凳#
发布于:2005-01-25 09:11
#define NT_DEVICE_NAME L"DeviceHelloWorld" 中L 是怎么回事? 双字节的Unicode字符串 |
|
|
地板#
发布于:2005-01-25 10:27
A wide-character string is represented as a wchar_t[] array and is pointed to by a wchar_t* pointer. Any ASCII character can be represented as a wide character by prefixing the letter L to the character. For example, L'' is the terminating wide (16-bit) NULL character. Similarly, any ASCII string literal can be represented as a wide-character string literal by prefixing the letter L to the ASCII literal (L"Hello").
[编辑 - 1/25/05 by KMK] |
|