我没MSDN,你粘贴的也可以。

解决方案 »

  1.   

    you mean the TEXT macro? if so, seehttp://leb.net/wine/WinDoc/msdn/sdk/platforms/doc/sdk/win32/mac/src/mac04_22.htmTEXT 
    The TEXT macro identifies a string as Unicode when the UNICODE compile flag is used or as an ANSI string when Unicode is not defined. TEXT(     
           LPTSTR string // address of ANSI or Unicode string 
       ); 
      
    Parameters
    string 
    Specifies the string to be interpreted as either Unicode or ANSI. Res
    The TEXT macro is defined as follows: #define TEXT(quote) L##quote 
      

  2.   

    TEXT其实是一个宏
    #ifdef  UNICODE                     
    #define __TEXT(quote) L##quote      
    #else   /* UNICODE */               
    #define __TEXT(quote) quote         
    #endif /* UNICODE */                
    #define TEXT(quote) __TEXT(quote)   在定义了UNICODE的情况下它返回UNICODE字符串
    在未定义UNICODE情况下返回ANSI字符串
      

  3.   

    《windos 程序设计》第二章有详细说明。
      

  4.   


    Platform SDK: International Features TEXT
    The TEXT macro identifies a string as Unicode when the UNICODE is defined during compilation. Otherwise, it identifies a string as an ANSI string. TEXT(
      LPTSTR string  // ANSI or Unicode string
    );
    Parameters
    string 
    Pointer to the string to be interpreted as either Unicode or ANSI. 
    Requirements 
      Windows NT/2000/XP: Included in Windows NT 3.1 and later.
      Windows 95/98/Me: Included in Windows 95 and later.
      Header: Declared in Winnt.h; include Windows.h.See Also
    Unicode and Character Sets Overview, Unicode and Character Set Macros 
    _____________________________________________________________________________
    Platform SDK: Exchange Server 
    TEXT
    The TEXT object allows the user to put a line of text on the page in a specified area. This object must always specify a VALUE property with a string that can contain one or more of the following metavariables.Metavariable Description 
    &USERNAME Prints the user's name. 
    &CURDATE Prints the current date. 
    &CURTIME Prints the current time. 
    &PRINTDATE Prints the date for which the object is printed. 
    &PAGENUM Prints the page number. 
    &TIMEZONE Prints the current time zone. 
    && Prints an ampersand (&). 
    The OPTIONS property, if present, requires the following parameters.Parameter Description 
    HCENTER | LEFT | RIGHT Specifies the horizontal justification. 
    VCENTER | NONE Specifies the vertical justification. 
    ELLIPSIS | NONE Adds an ellipsis to the end of a string if the entire string does not fit within the described rectangle. 
    Multiline text prints if there is room in the rectangle, but using VCENTER on a multiline text block can produce unpredictable results.