TEXT("asdfasd")是有什么作用,何时该用这个东西?

解决方案 »

  1.   

    如果定义了UNICODE
    TEXT("asdfasd") 即为 L("asdfasd") (宽字符版本)
    如果没有定义UNICODE
    TEXT("asdfasd") 就是 ("asdfasd") (ASCII版本)
      

  2.   

    converts following character or string to its Unicode counterpart
      

  3.   

    The TEXT macro identifies a string as Unicode when the UNICODE is defined during compilation. Otherwise, it identifies a string as an ANSI string.
      

  4.   

    字符集经历了单字符集(ascii)--双字符集--宽字符集(UNICODE)。
    单字符集(ascii)只有256个,宽字符集(UNICODE)有2的16次方个。
    宽字符集(UNICODE)由于国际项目的开发,因为他可以容内世界各国的文字。TEXT是一个定义好的宏用于兼容单字符集(ascii)和宽字符集(UNICODE)。
    输入单字符集(ascii)调用响应的类型和函数。同理输入宽字符集(UNICODE)也会调用响应的类型和函数。。