请问LPCTSTR   LPCWSTR   LPCSTR   分别代表什么指针类型~~~~? 
平时经常见到~~~~但是总是搞不清~!

解决方案 »

  1.   

    LP:指针
    C:const
    W:wide宽字符。
      

  2.   

    #ifdef UNICODE
    #define LPCTSTR LPCWSTR
    #else
    #define LPCTSTR LPCSTR
    #endif
    其他的和楼上的一样
      

  3.   

    请问UNICODE具体是什么? 
    请不要用砖头咂我~~- -!
      

  4.   

    LPCTSTR   A 32-bit pointer to a constant character string that is portable for Unicode and DBCS. An LPCWSTR if UNICODE is defined, an LPCSTR otherwise.LPCWSTR   Pointer to a constant null-terminated string of 16-bit Unicode characters. For more information, LPCSTR   Pointer to a constant null-terminated string of 8-bit Windows (ANSI) characters. For more information,
      

  5.   

    LPCTSTR:常字符串指针,可以这样理解:Long Pointer Count String  因此,很容易理解下面各个类型的意思。
    w表示Word