📄 visual c++数据之win32中的数据类型.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0062)http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Visual C++数据之Win32中的数据类型 - 桌面应用开发频道 | VC | VB | Delphi | c/C++ | 其它语言 | - STCore.com</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT src="Visual C++数据之Win32中的数据类型.files/urchin.js"
type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>_uacct = "UA-64966-2";urchinTracker();</SCRIPT>
<META content=VC,桌面应用开发频道 name=Copyright 其它语言,论坛 | C++ c Delphi VB VC>
<META content=VC,|桌面应用开发频道 name=description 其它语言,论坛 | C++ c Delphi VB VC>
<META content=VC,|桌面应用开发频道 name=keywords 其它语言,论坛 | C++ c Delphi VB VC><LINK
href="Visual C++数据之Win32中的数据类型.files/default.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
<BODY>
<DIV id=top_01>
<DIV id=logo><A href="http://www.stcore.com/"><IMG
src="Visual C++数据之Win32中的数据类型.files/logo.jpg" border=0></A></DIV>
<DIV id=banner01></DIV></DIV>
<DIV id=top_02>
<DIV id=topmenu>
<DIV class=topmenu01> <A
href="http://www.stcore.com/">首页</A> | <A
href="http://www.stcore.com/itnews/index_156.html">IT业界</A> | <A
href="http://www.stcore.com/itnews/index_156.html">资讯</A> | <A
href="http://www.stcore.com/itnews/index_163.html">人物</A> | <A
href="http://www.stcore.com/itnews/index_170.html">互联网</A> | <A
href="http://www.stcore.com/itnews/index_179.html" target=_blank>通讯频道</A> <FONT
color=red>企业服务:</FONT> <A
href="http://www.stcore.com/network/index.html">网络设备</A> | <A
href="http://www.stcore.com/server/index.html">服务器</A> | <A
href="http://www.stcore.com/security/index.html">安全</A> | <A
href="http://www.stcore.com/storage/index.html">存储</A> | <A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">解决方案</A>
<FONT color=red>IT教育: </FONT><A
href="http://www.stcore.com/cisco/index_37.html">思科认证</A> | <A
href="http://www.stcore.com/huawei/index_61.html">华为认证</A> | <A
href="http://www.stcore.com/windows/index_261.html" target=_blank>微软认证</A>
</DIV>
<DIV class=topmenu02> <FONT color=red>专家:</FONT> <A
href="http://www.stcore.com/cisco/">Cisco</A> | <A
href="http://www.stcore.com/huawei/index.html">华为</A> | <A
href="http://www.stcore.com/linux/index.html">Linux</A> | <A
href="http://www.stcore.com/windows/">Windows</A> | <A
href="http://www.stcore.com/ciw/">CIW</A> | <A
href="http://www.stcore.com/oracle/index.html">Oracle</A> | <A
href="http://www.stcore.com/java/index.html">Java</A> | <A
href="http://www.stcore.com/dotnet/index.html">.NET</A> | <A
href="http://www.stcore.com/game/index.html">游戏开发</A> | <A
href="http://www.stcore.com/desktop/index.html">桌面开发</A> <FONT
color=red>技术专题:</FONT> <A href="http://www.stcore.com/html/idea/">操作系统</A> | <A
href="http://www.stcore.com/html/idea/">编程技术</A> | <A
href="http://www.stcore.com/html/idea/">认证考试</A> | <A
href="http://www.stcore.com/html/idea/">网络技术</A> </DIV>
<DIV class=topmenu01> <FONT color=red>电子书:</FONT> <A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">网络</A> |
<A href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">系统</A>
| <A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">安全</A> |
<A href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">程序</A>
| <A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">数据库</A> |
<A href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">平面</A>
| <FONT color=red>考试资源:</FONT> <A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">视频</A> |
<A href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">方案</A>
| <A href="http://www.stcore.com/html/idea">专题</A> <FONT color=red>IT技术:</FONT>
<A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">平面设计</A>
| <A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">多媒体</A> |
<A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">多媒体</A> |
<A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#">即时通讯</A>
| <A href="http://bbs.stcore.com/" target=_blank>论坛</A> | <A
href="http://space.stcore.com/" target=_blank>博客</A> </DIV></DIV>
<DIV class=top02_banner><A href="http://www.stcore.com/html/idea/"><IMG
src="Visual C++数据之Win32中的数据类型.files/banner04.jpg" border=0></A></DIV></DIV>
<DIV id=top_01>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR>
<TD width=301><IMG height=55
src="Visual C++数据之Win32中的数据类型.files/title_00.gif" width=301></TD>
<TD vAlign=bottom
background="Visual C++数据之Win32中的数据类型.files/title_02.gif"><TABLE
cellSpacing=0 cellPadding=0 width="100%" border=0>
<FORM action=http://publish.stcore.com/search.php?o=search&TableID=1
<TBODY>
<TBODY>
<TR>
<TD class=darkred1 width=6> </TD>
<TD class=white1 width=70 height=32> </TD>
<TD><!---->新闻搜索:<INPUT id=Keywords size=24 name=Keywords> <INPUT onclick="if(this.form.Keywords.value=='' || this.form.Keywords.value==' ') {alert('请输入关键字');return false;}" type=submit value=搜索 name=submit>
<INPUT id=field type=hidden value=Title name=Field> <A
href="http://publish.stcore.com/search.php?o=pro&TableID=1">高级搜索</A> <A
href="http://www.stcore.com/html/idea/"
target=_blank>技术专题</A></TD></TR></TBODY></FORM></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=10 height=13> </TD>
<TD vAlign=top width=652 height=18><A
href="http://www.stcore.com/index.html">首页</A> | <A
href="http://www.stcore.com/desktop/">桌面开发</A> |<!--调用结点ID为155的子结点,忽略结点ID为31和32的结点--> <A
href="http://www.stcore.com/desktop/index_205.html">VC </A>| <A
href="http://www.stcore.com/desktop/index_206.html">VB </A>| <A
href="http://www.stcore.com/desktop/index_207.html">Delphi </A>| <A
href="http://www.stcore.com/desktop/index_208.html">C/C++ </A>| <A
href="http://www.stcore.com/desktop/index_209.html">其它语言 </A>|
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV id=middle1>
<DIV id=middle1_bg>
<DIV id=left1>
<DIV id=position>您的位置: <A href="http://www.stcore.com/index.shtml">首页 </A>→ <A
href="http://www.stcore.com/desktop/index.html">桌面开发 </A>→ <A
href="http://www.stcore.com/desktop/index_205.html">VC </A></DIV>
<DIV id=content>
<DIV id=title><B>
<H1>Visual C++数据之Win32中的数据类型</H1></B>
<P></P></DIV>
<DIV id=time>来源: STCore 收集整理 发布日期:2006-08-03 <A
href="http://bbs.stcore.com/forum-57-1.html" target=_blank>进入论坛</A> </DIV>
<DIV id=text>
<TABLE id=table1 cellSpacing=0 cellPadding=3 align=right border=0>
<TBODY>
<TR>
<TD>
<SCRIPT type=text/javascript><!--google_ad_client = "pub-6551280850971439";google_ad_width = 336;google_ad_height = 280;google_ad_format = "336x280_as";google_ad_type = "text_image";google_ad_channel ="2646134355";google_color_border = "E6E6E6";google_color_bg = "FFFFFF";google_color_link = "000033";google_color_text = "000000";google_color_url = "008000";//--></SCRIPT>
<SCRIPT src="Visual C++数据之Win32中的数据类型.files/show_ads.js"
type=text/javascript></SCRIPT>
</TD></TR></TBODY></TABLE><BR> <B>标准C或C++没有的数据类型</B><BR> <BR> 数据类型
说明<BR> <BR> BOOL 布尔变量,实际上是UINT<BR> <BR> COLORREF
用作颜色索引的32位整数<BR> <BR> DWORD 32位的无符号整数<BR> <BR> HANDLE 32位的无符号整数,用作句柄<BR> <BR> HINSTANCE
32位的无符号整数,用作实例句柄<BR> <BR> HWND 32位的无符号整数,用作窗口句柄<BR> <BR> HDC 一个设备描述背景的句柄<BR> <BR> LONG 32位带符号整数<BR> <BR> LPARAM 32位整数,用作窗口函数或者其他回调函数的参数之一<BR> <BR> LPCSTR 指向一个字符串常量的32位指针<BR> <BR> LPSTR 定义一个线性的32位字符串指针<BR> <BR> LRESULT 32位整数,是窗口函数或者其他回调函数的返回值类型<BR> <BR> UINT 定义一个新的Win32数据类型,它会把一个参数强制转换成Windows3.x应用中的16位值 或Win32应用中的32位值<BR> <BR> WCHAR 声明一个16位的UNICODE字符,用来表示世界上所有已知的书写语言的符号<BR> <BR> WORD 16位的无符号整数<BR> <BR> WPARAM 32位整数,用作窗口函数或者其他回调函数的参数之一(在Windows3.x中为16位值)<BR> <BR> 同时,为了统一变量的命名,在Windows中,不同类型的变量拥有各自的标准前缀,一般情况如表所示。<BR> 不同数据类型的前缀<BR> 前缀
数据类型<BR> <BR> c 字符(char)<BR> <BR> s 短整数(short)<BR> <BR> cb
用于定义对象(一般为一个结构)尺寸的整数<BR> <BR> n 整数(integer)<BR> <BR> sz
以'\0'结尾的字符串<BR> <BR> b 字节<BR> <BR> f BOOL<BR> <BR> w
字(WORD,无符号短整数)<BR> <BR> l 长整数(LONG)<BR> <BR> h HANDLE(无符号整数)<BR> <BR> m_
类成员变量<BR> <BR> fn 函数(function)<BR> <BR> dw 双字(DWORD,无符号长整数) </DIV>
<DIV id=SmallNav align=right></DIV></DIV><BR>
<DIV class=content_ad>
<LI>下一篇:<A
href="http://www.stcore.com/desktop/2006-08-03/1154574354d83431.html">Visual
C++模态对话框消息处理机制剖析</A> [2006-08-03 11:08:54] <BR>
<LI>上一篇:<A
href="http://www.stcore.com/desktop/2006-08-03/1154574358d83433.html">Visual
C++编程之Windows编程基础</A> [2006-08-03 11:08:58] <BR></LI></DIV>
<STYLE type=text/css>.STYLE1111 {
COLOR: #ff0000
}
</STYLE>
<DIV id=content>【<SPAN class=STYLE1111>收藏到</SPAN> <A
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=wellknow&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"
target=_self>VIVI</A> <A title=bangchen.com出品
href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"
target=_self>和讯</A> <A title=博彩
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(boit=window.open('http://blogmark.blogchina.com/jsp/key/quickaddkey.jsp?k='+encodeURI(d.title)+'&u='+encodeURI(d.location.href)+'&c='+encodeURI(t),'boit','scrollbars=no,width=500,height=430,status=no,resizable=yes'));boit.focus();"
target=_self>博彩</A> <A
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"
target=_self>365Key</A> <A title=加入狐摘
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://z.sohu.com/storeit.do?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"
target=_self>狐摘</A> <A title=YouNote
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(youit=window.open('http://www.younote.com/Noteit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'youit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));youit.focus();"
target=_self>YouNote</A>】 【<A href="http://bbs.stcore.com/">社区</A>】【<A
href="javascript:window.print();">打印</A>】 【<A
href="javascript:window.close()">关闭</A>】 【<A
href="http://www.stcore.com/desktop/2006-08-03/1154574356d83432.html#top">顶部</A>】 STCore<SPAN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -