COM 组件设计与应用(六)——用 ATL 写第一个组件VC源代码

上传者: 38595689 | 上传时间: 2022-05-07 22:25:30 | 文件大小: 113KB | 文件类型: RAR
1、与 《COM 组件设计与应用(五)》的内容基本一致。但本回讲解的是在 2003 下的使用方法,即使你不再使用vc6.0,也请和上一回的内容,参照比对。2、这第一个组件,除了所有 COM 组件必须的 IUnknown 接口外,我们再实现一个自己定义的接口 IFun,它有两个函数: Add()完成两个数值的加法,Cat()完成两个字符串的连接。3、下面......好好听讲! 开始了:-)
关键字:atl,com,组件

文件下载

资源详情

[{"title":"( 83 个子文件 113KB ) COM 组件设计与应用(六)——用 ATL 写第一个组件VC源代码","children":[{"title":"ComP6srcDNet","children":[{"title":"Use4","children":[{"title":"stdafx.cpp <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Use4.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"Use4.rc2 <span style='color:#111;'> 360B </span>","children":null,"spread":false}],"spread":true},{"title":"Use4Dlg.h <span style='color:#111;'> 540B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Use4.rc <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"Use4.cpp <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"Use4.h <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"Use4Dlg.cpp <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"Use4.vcproj <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"Use5","children":[{"title":"stdafx.cpp <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Use5.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"Use5.rc2 <span style='color:#111;'> 360B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"Use5.vcproj <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"Use5Dlg.cpp <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"Use5.cpp <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"Use5.h <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"Use5Dlg.h <span style='color:#111;'> 540B </span>","children":null,"spread":false},{"title":"Use5.rc <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"Simple2","children":[{"title":"stdafx.cpp <span style='color:#111;'> 134B </span>","children":null,"spread":false},{"title":"Simple2_p.c <span style='color:#111;'> 10.29KB </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"dlldata.c <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"Fun.rgs <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Simple2PS.vcproj.vspscc <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"Fun.cpp <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Fun.h <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"Simple2.idl <span style='color:#111;'> 786B </span>","children":null,"spread":false},{"title":"Simple2.def <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"Simple2.rc <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"Simple2_i.c <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"Simple2ps.def <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"Simple2PS.vcproj <span style='color:#111;'> 3.29KB </span>","children":null,"spread":false},{"title":"Simple2.h <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false},{"title":"Simple2.vcproj.vspscc <span style='color:#111;'> 290B </span>","children":null,"spread":false},{"title":"Simple2.vcproj <span style='color:#111;'> 5.91KB </span>","children":null,"spread":false},{"title":"Simple2.rgs <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"Simple2.cpp <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false}],"spread":false},{"title":"Use2","children":[{"title":"stdafx.cpp <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 676B </span>","children":null,"spread":false},{"title":"Use2.rc <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Use2.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"Use2.rc2 <span style='color:#111;'> 360B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Use2Dlg.cpp <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"Use2.h <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"Use2.vcproj <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"Use2.cpp <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"Use2Dlg.h <span style='color:#111;'> 614B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"ComP5.net.suo <span style='color:#111;'> 18.00KB </span>","children":null,"spread":false},{"title":"Use1","children":[{"title":"stdafx.cpp <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"Use1Dlg.h <span style='color:#111;'> 577B </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"Use1.h <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Use1.rc2 <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"Use1.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Use1Dlg.cpp <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"Use1.rc <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"Use1.cpp <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"Use1.vcproj <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"Use3","children":[{"title":"stdafx.cpp <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"Use3.h <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Use3.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"Use3.rc2 <span style='color:#111;'> 360B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Use3Dlg.h <span style='color:#111;'> 540B </span>","children":null,"spread":false},{"title":"Use3.vcproj <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"Use3.cpp <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"Use3Dlg.cpp <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"Use3.rc <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"ComP5.net.sln <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明