在学习global.asa是遇到一些看不懂的地方,希望知道的人给与解惑。
TypeLibrary Declarations
TypeLibrary 声明
A TypeLibrary is a container for the contents of a DLL file corresponding to a COM object. By including a call to the TypeLibrary in the Global.asa file, the constants of the COM object can be accessed, and errors can be better reported by the ASP code. If your Web application relies on COM objects that have declared data types in type libraries, you can declare the type libraries in Global.asa.
TypeLibrary是针对一DLL文件内容的容器,相当于COM对象。在Global.asa文件中通过调用来使得COM对象的常数能被使用,并且ASP代码的错误可以更好的得以反馈。如果你的WEB程序依赖于COM对象中已经被声明了的数据类型,你可以在Globa.asa中声明类库。
Syntax 语法
<!--METADATA TYPE="TypeLib"
file="filename"
uuid="typelibraryuuid"
version="versionnumber"
lcid="localeid"
-->
Parameter参数 | Description 描述 |
---|---|
file |
Specifies an absolute path to a type library.Either the file parameter or the uuid parameter is required |
uuid |
Specifies a unique identifier for the type library. Either the file parameter or the uuid parameter is required |
version |
Optional. Used for selecting version. If the requested version is not found, then the most recent version is used |
lcid |
Optional. The locale identifier to be used for the type library |
文中用红色表示的地方,我不是很明白。我在想是不是file这个参数可以指向一个包含有类的文件,这样我就声明了一个类库
[此贴子已经被作者于2006-4-14 15:32:14编辑过]