设为首页 加入收藏

TOP

VC++数据类型(一)
2012-11-02 08:51:54 】 浏览:4933
Tags:数据 类型
    标识符 实际类型 意义
   
    CHAR char 8位Windows(ANSI)字符。
   
    CCHAR char 8位Windows(ANSI)字符。
   
    PSZ char* 一个以"NULL"结束的Windows字符串的指针
   
    PCHAR CHAR* 一个CHAR型指针
   
    PSTR CHAR* 一个以"NULL"结尾的8位Windows(ANSI)字符串指针
   
    LPSTR CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串指针
   
    NPSTR CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串指针
   
    PCSTR CONST CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串常量指针
   
    LPCSTR CONST CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串常量指针
   
    WCHAR wchar_t 16位Unicode字符
   
    PWCH WCHAR* 一个WCHAR型指针
   
    PWCHAR WCHAR* 一个WCHAR型指针
   
    PWSTR WCHAR* 一个以"NULL"结尾的16位Unicode字符串指针
   
    LPWSTR WCHAR FAR* 一个以"NULL"结尾的16位Unicode字符串指针
   
    NWPSTR WCHAR* 一个以"NULL"结尾的16位Unicode字符串指针
   
    PCWCH CONST WCHAR* 一个WCHAR型常量指针
   
    LPCWCH CONST WCHAR FAR* 一个WCHAR型常量指针
   
    PCWSTR CONST WCHAR* 一个以"NULL"结束的16位Unicode字符串常量指针
   
    LPCWSTR CONST WCHAR FAR* 一个以"NULL"结尾的16位Unicode字符串常量指针
   
    TCHAR WCHAR(或char) 兼容型字符(Unicode中为WCHAR型,Windows中为CHAR型)
   
    PTCHAR WCHAR*(或char) 一个TCHAR型指针
   
    PTCH LPWSTR(或LPSTR) Unicode中为LPWSTR型,Windows中为LPSTR型
   
    LPTCH LPWSTR(或LPSTR) Unicode中为LPWSTR型,Windows中为LPSTR型
   
    PTSTR LPWSTR(或LPSTR) Unicode中为LPWSTR型,Windows中为LPSTR型
   
    LPTSTR LPWSTR(或LPSTR) Unicode中为LPWSTR型,Windows中为LPSTR型
   
    PCTSTR PCWSTR(或PCSTR) Unicode中为PCWSTR型,Windows中为PCSTR型
   
    LPCTSTR LPCWSTR(或LPCSTR) Unicode中为LPCWSTR型,Windows中为LPCSTR型
   
    UCHAR unsigned char 无符号字符型
   
    PUCHAR UCHAR* 一个UCHAR型指针
   
    BSTR OLECHAR* 32位字符指针(不推荐使用)
   
    OLECHAR wchar_t Unicode字符类型(用于对象链接与嵌入的数据类型,如嵌入Word文档)
   
    LPOLESTR OLECHAR* 一个OLECHAR型指针
   
    LPCOLESTR const OLECHAR* 指向OLECHAR类型的字符串常量指针
   
    ---------------------------------------------------
   
    数值类:
   
    ---------------------------------------------------
   
    标识符 实际类型 意义
   
    BYTE unsigned char 8位无符号整数
   
    PBYTE BYTE near* 一个BYTE型指针
   
    LPBYTE BYTE far* 一个BYTE型指针
   
    TBYTE WCHAR(或unsigned char) Unicode中为WCHAR型,Windows中为unsigned char型
   
    PTBYTE WCHAR*(或unsigned char*) 一个TBYTE型指针
   
    BOOL int 布尔变量,其值为(TRUE或FALSE)
   
    PBOOL BOOL near* 一个BOOL型指针
   
    LPBOOL BOOL far* 一个BOOL型指针
   
    BOOLEAN BYTE 布尔变量,其值为(TRUE或FALSE)
   
    PBOOLEAN BOOLEAN* 一个BOOLEAN型指针
   
    SHORT short 16位短整数(有符号)
   
    PSHORT SHORT* 一个SHORT型指针
   
    USHORT unsigned short 无符号短整型
   
    PUSHORT USHORT* 一个USHORT型指针
   
    INT int 32位符号整数
   
    INT32 32位符号整数
   
    INT64 64位符号整数
   
    INT_PTR Signed integral type for pointer precision.Use when casting a pointer to an integer to perform pointer arithmetic.
   
    PINT INT near* 一个INT型指针
   
    LPINT INT far* 一个INT型指针
   
    UINT unsigned int 无符号的整型
   
    UINT32 无符号的INT32型
   
    UINT64 无符号的INT64型
   
    UINT_PTR 无符号的INT_PTR型
   
    PUINT UINT* 一个UINT型指针
   
    LONG long 32位符号整数
   
    LONG32 32位符号整数
   
    LONG64 64位符号整数
   
    LONGLONG __int64(或double) 64位符号整数
   
    LONG_PTR Signed long type for pointer precision.Use when casting a pointer to a long to perform pointer arithmetic.
   
    PLONG LONG near* 一个LONG型指针
   
    LPLONG LONG far* 一个LONG型指针
   
    PLONGLONG LONGLONG* 一个LONGLONG型指针
   
    ULONG unsigned long 无符号的LONG型
   
    ULONG32 无符号的LONG32型
   
    ULONG64 无符号的LONG64型
   
    ULONGLONG unsigned __int64(或double) 64位无符号整型
   
    ULONG_PTR 无符号的LONG_PTR型
   
    PULONG ULONG* 一个ULONG型指针
   
    PULONGLONG ULONGLONG* 一个ULONGLONG型指针
   
    WORD unsigned short 16位无符号整型
   
    PWORD WORD near* 一个WORD型指针
   
    LPWORD WORD far* 一个WORD型指针
   
    DWORD unsigned long 32位无符号整数
   
    DWORD32 32位无符号整型
   
    DWORD64 64位无符号整型
   
    DWORD_PTR Unsigned long type for pointer precision.Use when casting a pointer to a long type to perform pointer arithmetic.(Also commonly used for general 32-bit parameters that have been extended to 64 bits in 64-bit Windows.

[1] [2] 下一页

首页 上一页 1 2 3 4 5 6 7 下一页 尾页 1/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇谈VC++对象模型 下一篇关于C++中的不变式

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目