LPCTSTR 相当于 const char *
LPTSTR 相当于 char *LPTSTR lpStr = new char [SIZE];
...
...
delete lpStr;or:LPTSTR lpStr = malloc(SIZE);
...
...
free(lpStr);
LPTSTR 相当于 char *LPTSTR lpStr = new char [SIZE];
...
...
delete lpStr;or:LPTSTR lpStr = malloc(SIZE);
...
...
free(lpStr);
lpctstr px;
px=x;
当编译选项为unicode时,
LPCTSTR 相当于 const wchar *,LPTSTR 相当于 wchar *
反之,则反之。