win32api中的L和T,TEXT,_TEXT,__TEXT或__T

宏 说明
前置 Unicode字符串中每个字符占16位(两个字节),而在ASNI中每个字符占用一个字节。
L作用 Unicode编码的标记,告诉编译器该字符串应该作为Unicode来编译,它用来将ASNI转换为Unicode。
Text() 我们不知道应该是怎么编码,交给宏处理,如果定义了UNICODE,则将“字符串”映射到L“字符串”。[T,TEXT,_TEXT,__TEXT或__T]

思考:Why are there different TEXT like macros for the same thing in win32?

posted @ 2022-07-26 23:04  klyn003  阅读(157)  评论(0)    收藏  举报