为什么VC里面的很多类型前边都有LP开头啊?有什么含义吗?

解决方案 »

  1.   

    还有个问题:是不是有LPCTSTR、LPTSTR、LPCSTR呀?第一个已经找到。第二、三是什么意思呀?
      

  2.   

    都是指针类型 象你举例的在MSDN里面都有说明 
    LPCSTR Pointer to a constant null-terminated string of 8-bit Windows (ANSI) characters. For more information, seeCharacter Sets Used By Fonts. 
    LPCTSTR An LPCWSTR ifUNICODE is defined, an LPCSTR otherwise. 
    LPSTR Pointer to a null-terminated string of 8-bit Windows (ANSI) characters. For more information, seeCharacter Sets Used By Fonts.
      

  3.   

    也就是long pointer,当然在win32环境下lp和p没什么区别
      

  4.   

    LPCSTR = const TCHAR*
    LPTSTR = TCHAR*
    LPSTR = char*
    LPCSTR = const char*
    ?
      

  5.   

    LPCSTR = const TCHAR*
    LPTSTR = TCHAR*
    LPSTR = char*
    LPCSTR = const char*