LPCSTR 是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/06/04 06:17:46
在MFC中,经常看到,不知是什么的缩写,或者是什么意思?

MSDN中的解释:
LPCSTR
Pointer to a constant null-terminated string of 8-bit Windows (ANSI) characters.

翻译过来就是:
指向以null结尾的常量字符串的指针

A 32-bit pointer to a constant character string.
一个32位的指针,指向字符串常量

Local Pointer of Constant String

LPCTSTR的定义是:在多字节编码情况下是:const char*,在UNICODE编码情况下是:const wchar_t*