Win32编程常见字符类型(摘自MSDN)
2011-10-11 13:32
246 查看
LPCSTR | Pointer to a constant null-terminated string of 8-bit Windows (ANSI) characters. For more information, see Character Sets Used By Fonts. This type is declared in WinNT.h as follows: typedef __nullterminated CONST CHAR *LPCSTR; |
LPCWSTR | Pointer to a constant null-terminated string of 16-bit Unicode characters. For more information, see Character Sets Used By Fonts. This type is declared in WinNT.h as follows: typedef CONST WCHAR *LPCWSTR; |
LPCTSTR | An LPCWSTR if UNICODE is defined, an LPCSTR otherwise. This type is declared in WinNT.h as follows: #ifdef UNICODE typedef LPCWSTR LPCTSTR; #else typedef LPCSTR LPCTSTR; #endif |
LPSTR | Pointer to a null-terminated string of 8-bit Windows (ANSI) characters. For more information, see Character Sets Used By Fonts. This type is declared in WinNT.h as follows: typedef CHAR *LPSTR; |
LPWSTR | Pointer to a null-terminated string of 16-bit Unicode characters. For more information, see Character Sets Used By Fonts. This type is declared in WinNT.h as follows: typedef WCHAR *LPWSTR; |
LPTSTR | An LPWSTR if UNICODE is defined, an LPSTR otherwise. This type is declared in WinNT.h as follows: #ifdef UNICODE typedef LPWSTR LPTSTR; #else typedef LPSTR LPTSTR; #endif |
TCHAR | A WCHAR if UNICODE is defined, a CHAR otherwise. This type is declared in WinNT.h as follows: #ifdef UNICODE typedef WCHAR TCHAR; #else typedef char TCHAR; #endif |
助记字母:
LP – long pointer (32位指针,win32编程指针都为LP)
C – constant
W – wide(UNICODE宽字符)
T – transferable (可转换的)
相关文章推荐
- Windows编程 Unicode编码和通用字符类型TCHAR
- spring4笔记----常见的java的字符类型与xml匹配
- [Windows编程] Windows最常见的数据类型列表
- 如何:在十六进制字符串与数值类型之间转换(C# 编程指南MSDN)
- 请问WIN32编程中的HRESULT类型和LRESULT类型有什么不同呢
- Java笔记----字节流与字符的常见类型
- vc中常见字符类型的讨论
- Windows编程中一些常用的字符(串)类型转换
- C#泛型类型里的反引号(`),摘自MSDN
- Win32中的字符编码与字符类型
- [摘自MSDN] ASP.Net2.0学习 [2] 主题 6 :如何:以编程方式应用 ASP.NET 主题
- USB编程研究之二(常见设备类型的GUID)
- 1.Socket网络编程之传递字符类型(图解与编码)
- C语言编程,键盘输入一个字符,输出其类型
- VC编程常见类型变量 ZT(http://www.vckbase.com/study/article/data_convert.htm)
- delphi 编程入门一 常见文件类型
- windows编程常见数据类型
- 串的处理 在实际的开发工作中,对字符串的处理是最常见的编程任务。本题目即是要求程序对用户输入的串进行处理。具体规则如下: 1. 把每个单词的首字母变为大写。 2. 把数字与字母之间用下划线字符(_)分
- win32编程常用的数据类型
- VB速查大全(数据库、表格及报表编程) ★ VB错误处理,ado常见错误,VB数据类型等,网上有很多教程是错的,强烈建议看此文