原來 是為了解決2 而問1
char b[]={'T','E','S','T'};
LPSTR a;
LPCTSTR : A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.
LPTSTR : A 32-bit pointer to a character string that is portable for Unicode and DBCS.
LPCSTR : A 32-bit pointer to a constant character string.
LPSTR : A 32-bit pointer to a character string.
b 是 字串陣列
a 是 字串類別,應該說是字元指標
所以你可以直接引用這些類別(當然要引入適當標頭檔)
|