阅读:1294回复:4
请教一个问题
遇到一个语法问题,请教各位大侠了!
WCHAR deviceLinkBuffer[] = L"\\DosDevices\\Ezusb-0"; WCHAR deviceNameBuffer[] = L"\\Device\\Ezusb-0"; 这是EZ_USB通用驱动程序中得两句,有两个问题要请教: 1) 这里的 L 是什么意思,好像没有它得定义? 2)路径中\\DosDevices 和 \\Device 是不是默认的? 谢谢各位大侠! |
|
|
沙发#
发布于:2004-11-17 07:28
1) The magic L is what tells the compiler this is a Unicode literal and not a char->unsigned short conversion.
2) 是默认 !! |
|
板凳#
发布于:2004-11-17 08:49
1) The magic L is what tells the compiler this is a Unicode literal and not a char->unsigned short conversion. |
|
|
地板#
发布于:2004-11-17 09:16
正确,顶。
|
|
地下室#
发布于:2004-11-17 12:48
谢谢楼上大侠
|
|
|