?? 《com 原理與應用》學習筆記 - linuszhu的專欄 - csdnblog.htm
字號:
var target = e.target || e.srcElement; if (target.nodeName.toUpperCase() == "LABEL" && target.htmlFor != '') return; var eventTarget = target.id.split("_").join("$"); Anthem_FireCallBackEvent( target, e, eventTarget, '', causesValidation, validationGroup, '', textDuringCallBack, enabledDuringCallBack, preCallBackFunction, postCallBackFunction, callBackCancelledFunction, true, true );}function GetLabelText(id) { var labels = document.getElementsByTagName('label'); for (var i = 0; i < labels.length; i++) { if (labels[i].htmlFor == id) { return labels[i].innerHTML; } } return null;}function SetLabelText(id, text) { var labels = document.getElementsByTagName('label'); for (var i = 0; i < labels.length; i++) { if (labels[i].htmlFor == id) { labels[i].innerHTML = text; return; } }}//]]></SCRIPT>
<SCRIPT src="《COM 原理與應用》學習筆記 - linuszhu的專欄 - CSDNBlog.files/WebResource.axd"
type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
// -->
</SCRIPT>
<DIV id=top>
<DIV>
<TABLE>
<TBODY>
<TR>
<TD class=HeaderTitles>
<H1><A class=headermaintitle id=Header1_HeaderTitle
href="http://blog.csdn.net/linuszhu/">linuszhu的專欄</A></H1>
<P id=tagline></P></TD></TR></TBODY></TABLE></DIV>
<DIV class=HeaderBar>
<TABLE class=HeaderBar id=HeaderBar>
<TBODY>
<TR>
<TD class=HeaderBarTab noWrap> <A href="http://www.csdn.net/"
target=_blank>CSDN</A> | <A href="http://community.csdn.net/"
target=_blank>社區</A> | <A href="http://dev.csdn.net/"
target=_blank>技術中心</A> | <A id=Header1_MyLinks1_HomeLink
title=到聚合站點 href="http://blog.csdn.net/"
target=_blank>BLOG首頁</A> | <A id=Header1_MyLinks1_PersonalHome
title="訪問 linuszhu的專欄" href="http://blog.csdn.net/linuszhu/"
target=_blank>我的首頁</A> | <A id=Header1_MyLinks1_PersonalResume
href="http://job.csdn.net/resumes/linuszhu.aspx">個人檔案</A> | <A
id=Header1_MyLinks1_ContactLink accessKey=9
href="http://blog.csdn.net/linuszhu/contact.aspx">聯系作者</A> | <A
id=Header1_MyLinks1_Syndication
href="http://blog.csdn.net/linuszhu/Rss.aspx">聚合</A> <A class=XMLLink
id=Header1_MyLinks1_XMLLink
href="http://blog.csdn.net/linuszhu/Rss.aspx"><IMG
src="《COM 原理與應用》學習筆記 - linuszhu的專欄 - CSDNBlog.files/xml.gif"
border=0></A> | <A id=Header1_MyLinks1_HyperLink1
href="http://search.csdn.net/search_blog.asp"
target=_blank>搜索</A> | <A id=Header1_MyLinks1_Admin
href="http://writeblog.csdn.net/">登錄</A> <IMG id=Header1_BlueTab
src="《COM 原理與應用》學習筆記 - linuszhu的專欄 - CSDNBlog.files/BlueTabRight.jpg"
align=absMiddle border=0> </TD>
<TD class=HeaderBarTabBack noWrap width="100%">
<DIV class=BlogStatsBar>
<TABLE class=BlogStatsBar>
<TBODY>
<TR>
<TD width="100%"></TD>
<TD class=BlogStatsBar noWrap> 1篇原創: 0篇翻譯: 0篇轉載: 479次點擊:
24個評論: 0個Trackbacks
</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></DIV>
<DIV id=leftmenu>
<H3 class=listtitle>文章</H3>
<UL class=list></UL>
<H3 class=listtitle>收藏</H3>
<UL class=list></UL>
<H3 class=listtitle>相冊</H3><!--category title-->
<UL class=list></UL>
<H3 class=listtitle>存檔</H3>
<UL class=list>
<LI><A
href="http://blog.csdn.net/linuszhu/archive/2004/07.aspx">2004年07月(1)</A></LI></UL><SPAN
id=Anthem_RecentComments_ltlComments__><SPAN
id=RecentComments_ltlComments></SPAN></SPAN><BR><BR></DIV>
<DIV id=main>
<DIV class=Tag>
<SCRIPT language=javascript
src="《COM 原理與應用》學習筆記 - linuszhu的專欄 - CSDNBlog.files/urltag.aspx"></SCRIPT>
<DIV style="CLEAR: both"></DIV></DIV>
<SCRIPT>function StorePage(){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();}</SCRIPT>
<DIV class=post>
<DIV class=postTitle><A
href="http://blog.csdn.net/linuszhu/archive/2004/07/09/38199.aspx"><IMG
height=13 src="《COM 原理與應用》學習筆記 - linuszhu的專欄 - CSDNBlog.files/authorship.gif"
width=15 border=0> 《COM 原理與應用》學習筆記</A> </DIV>
<DIV class=postText>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">《</SPAN><SPAN
lang=EN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原理與應用》學習筆記</SPAN><SPAN
lang=EN> - </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第一部分</SPAN><SPAN
lang=EN> COM</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原理</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">按:文章對</SPAN><SPAN
lang=EN>COM</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原理具有高度總結性,推薦學習</SPAN><SPAN
lang=EN>COM</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的朋友都看一看,</SPAN><SPAN
lang=EN>COM</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">注定要淘汰的,但學習</SPAN><SPAN
lang=EN>COM</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的編程思想是非常有意義的。</SPAN></P>
<P class=MsoNormal><SPAN lang=EN> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN>dREAMtHEATER</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">推薦必屬佳品</SPAN></P>
<P class=MsoNormal><SPAN lang=EN> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">《</SPAN><SPAN
lang=EN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原理與應用》學習筆記</SPAN><SPAN
lang=EN> - </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第一部分</SPAN><SPAN
lang=EN> COM</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原理</SPAN></P>
<P class=MsoNormal><SPAN lang=EN> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN>savetime2k@yahoo.com</SPAN></P>
<P class=MsoNormal><SPAN lang=EN> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN>(</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">本文內容基本上是從《</SPAN><SPAN
lang=EN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原理與應用》書中摘錄,版權由作者潘愛民所有</SPAN><SPAN
lang=EN>)</SPAN></P>
<P class=MsoNormal><SPAN lang=EN> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">目錄</SPAN></P>
<P class=MsoNormal><SPAN
lang=EN>===============================================================================</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">⊙</SPAN>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第一章</SPAN>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">概述</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是什么</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">對象與接口</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">進程模型</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可重用性</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">⊙</SPAN>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第二章</SPAN><SPAN
lang=EN> COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">對象模型</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">全局唯一標識符</SPAN><SPAN
lang=EN> GUID</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">對象</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">接口</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">接口描述語言</SPAN><SPAN
lang=EN> IDL</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>IUnknown </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">接口</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">對象的接口原則</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">⊙</SPAN>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第三章</SPAN><SPAN
lang=EN> COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的實現</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">組件注冊信息</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">注冊</SPAN><SPAN
lang=EN> COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">組件</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">類廠和</SPAN><SPAN
lang=EN> DllGetObjectClass </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">函數</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>CoGetClassObject </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">函數</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>CoCreateInstance / CoCreateInstanceEx </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">函數</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">庫的初始化</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">庫的內存管理</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">組件程序的裝載和卸載</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>COM </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">庫常用函數</SPAN></P>
<P class=MsoNormal><SPAN lang=EN><SPAN style="mso-spacerun: yes">
</SPAN>HRESULT </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">類型</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">⊙</SPAN>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第四章</SPAN><SPAN
lang=EN> COM </SPAN><SPAN
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -