介绍
如果你是一个ASP的开发者,那么你已经使用对象组成模型(COM)对象来创建你的ASP主页。但是,即使你曾经研究过com对象或者阅读过一本详细的关于com的书籍,你都不一定能了解在asp中运用众多的com对象。同时,如果没有足够的关于com的知识, 在阅读的文件中存在这些对象时,你就可能无法推断出这些对象的方法和属性。关于Com组件,令人惊奇的事情之一是,一旦你了解了这些标准和限制,你就可以在很短的时间内学会如何去运用其他的com对象。在这个指导里,我解释了那些编写VBScript脚本语言的人的关于如何运用com组件的一些看法,并且这个知识将帮助你掌握com世界。
这个指导示范了一些关于常见的VBScript脚本语言和com对象的基本要素,对那些已经用过com对象(比如ADO)却不知道它们是com对象的人尤其有用。这个指导是为你对下面一些情况感到惊奇的时候准备的:
·属性和方法之间的不同点是什么?
·属性有没有引发一些争论?
·当属性为只读时是什么意思?
·什么是收集对象?
·什么属性是代表每一个收集对象?
·为什么我能够不调用方法也能够调用一些收集对象?
·在一个单一的动态链接库中有多少个com对象?
外文原文:
If you are an Active Server Pages (ASP) developer, you have already used Component Object Model (COM) objects to create your ASP pages. However, unless you have developed COM objects or read a detailed book on COM, you might not know about the multitude of COM objects that you can use in asp. Also, without sufficient COM knowledge, you might not be able to infer the methods and properties that exist for those objects when reading the documentation. One of the wonderful things about COM is that once you learn the standards and restrictions, you can quickly learn to implement other COM objects. In this tutorial, I explain how COM works from the perspective of someone who writes Visual Basic® Scripting Edition (VBScript), and this knowledge will help you master the world of COM.
This tutorial demonstrates the basics of COM to those familiar with VBScript and COM objects, and is especially useful to those who have used COM objects like ActiveXA‚AData Objects (ADO) without knowing that they are COM. This tutorial is for you if have ever wondered any of the following:
· What is the difference between a property and a method?
· Does a property take an argument?
· What does it mean for a property to be read-only?
· What is a collection object?
· What properties are standard with every collection object?
· Why can I index a collection object without calling a method?
· How many COM objects can there be in a single DLL?
com对象(1)外文翻译资料(62)
< class="2740