转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 软件开发 >> VB.NET程序 >> 正文
VBCOM TUTORIAL(1)         ★★★★

VBCOM TUTORIAL(1)

作者:闵涛 文章来源:闵涛的学习笔记 点击数:1089 更新时间:2009/4/23 18:58:27
Introduction

This web-based tutorial will guide you through a tour of the Microsoft Component Object Model (COM) from the perspective of Visual Basic. It is not intended to be a comprehensive coverage of VB COM but an introduction.  Our goals are the following:

  • To help you understand the motives behind COM, and why it has evolved to be the way it is.
  • To introduce you to object-based programming in general and COM programming in particular, all from the perspective of VB.
  • To present one of the most important concepts in COM, that of interfaces and interface-based programming
  • To look behind the scenes of VB and learn about GUIDs, IDL, type libraries and the registry.
  • To debunk the myth that COM programming is hard.

We assume that you are here because you are already motivated to learn about VB COM.   If so, click here to setup your tutorial environment, and then you''''ll be ready to start!  On the other hand, if you would like a little background on the motivations behind COM, continue reading below.

Motivation
Why COM?

COM was originally designed to enable objects to communicate with one another, objects written in different languages and running in different processes.  If you stop and really think about this, COM solves a very difficult problem.  Firstly, languages such as Visual Basic, C++ and Java have radically different run-time environments, type systems, parameter-passing mechanisms and object formats.  Finding a common yet powerful object-oriented framework is not a trivial task.  Secondly, in order for processes to communicate, data must be passed back and forth across address space boundaries (marshaled) in a synchronized manner.  The calling object needs to block while it awaits completion of the call, and the callee object may need to queue up incoming calls as it completes the current one. 

Thus, the first benefit of COM is that it enables the creation of plug-and-play software components.  The power of this approach is readily apparent in Visual Basic itself, with its extensible collection of user-interface controls

Like the object-oriented languages on which it is based, COM was also designed to support the evolution of software components.  We all know that software evolves, both in terms of bug fixes and functionality.  The question is how best to minimize the impact of change in an existing system.  COM''''s solution is based on a strict adherence to the notion of interface-based programming.  As you will see later in this tutorial, interfaces are simply a collection of method signatures.   However, software designs based on immutable interfaces are better able to evolve since object implementations can change while remaining backward compatible with existing code.  This is the second major benefit to be gained from using COM.

Finally, COM and its infrastructure enable the straightforward construction of distributed applications.  COM objects interacting on the same machine can be moved to different machines without any coding changes!  This greatly simplifies the development of multi-tier applications, especially when combined with other COM-based technologies such as MTS (Microsoft Transaction Server).  Previously known as DCOM (Distributed COM), support for distributed computation is now considered an essential feature of COM and thus no longer carries a separate moniker.


[学习帮助]已知直线Y=-x+1 交X,Y 轴于A,B  [办公软件]如何在Excel表格单元格中输入比例(如4:1并让其正确…
[常用软件]休息一下!网络资源搜罗 (1)  [VB.NET程序]VB6升级到VB.NET(1)  App的变化
[VB.NET程序]VB.NET实现DirectDraw9 (1) 托管的DDraw  [VB.NET程序]学习笔记,VB.NET使用DirectSound9 (1)
[VB.NET程序]Visual Basic 6 逆向工程与反逆向工程 (1)  [VB.NET程序]几个 WMI 的例子(初级) - 1
[VB.NET程序]VBCOM TUTORIAL(3)  [VB.NET程序]VBCOM TUTORIAL(2)
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · C语言系列  · VB.NET程序
    · JAVA开发  · Delphi程序
    · 脚本语言
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台