Board index » cppbuilder » const LPSTR
tinyabs
![]() CBuilder Developer |
tinyabs
![]() CBuilder Developer |
const LPSTR2005-07-30 04:14:17 AM cppbuilder47 Why does the following code compiles? strcpy((const LPSTR) hwKey, hwKey); while strcpy((const char *) hwKey, hwKey); does not. |
Muzaffar Mahkamov
![]() CBuilder Developer |
2005-07-30 05:28:59 PM
Re:const LPSTR
tinyabs wrote:
QuoteWhy does the following code compiles? typedef CHAR *LPSTR; |
maeder
![]() CBuilder Developer |
2005-07-31 01:38:07 AM
Re:const LPSTR
Muzaffar Mahkamov < XXXX@XXXXX.COM >writes:
Quotetinyabs wrote: is a synonym to CHAR * const LPSTR , i.e. the pointer is const, whereas in const char *, the char objects are const. {smallsort} |