LPSTR, LPCSTR, LPTSTR, LPWSTR types What is the difference? Windows api issues

Category: C/C++ -> C Author: YI443773 Date: 2004-06-13 17:31:17
 
YI443773
2004-06-13 17:31:17
LPSTR: char *

LPCSTR const char *, const char pointer pointing to the string value can not be modified.

LPTSTR: Depending on the compiler directives have different interpretations

# ifdef _UNICODE
define LPTSTR LPWSTR
# else
define LPTSTR LPSTR
# endif

LPWSTR: unsigned short *
wchak07
2004-06-13 17:43:54
lpstr == long the pointing to the string pointer
lpcstr == long const string pointer pointing
LPWSTR == long word string pointer pointing
ansen519
2004-06-13 18:03:20

LPSTR ; A 32-bit pointer to a character string.
LPCSTR A 32-bit pointer to a constant character string.
LPTSTR A 32-bit pointer to a character string that is portable for Unicode and DBCS.
LPCTSTR A ; 32-bit pointer to a constant character string that is portable for Unicode and DBCS.

herrwmsh
2004-06-13 18:11:49
thanks