Name

Type Library Declarations

Synopsis

<!-- METADATA TYPE="TypeLibrary"
FILE="FileName"
UUID="TypeLibraryUUID"
VERSION="MajorVersionNumber.MinorVersionNumber"
LCID="LocaleID"
-->

Type libraries are accessory files that contain information about the properties and methods of COM objects. These files describe any constants used by the object and the data types of acceptable property values. A type library enables your application to more accurately report errors in your use of the object to which the type library corresponds. It also allows you to use constants defined in the object's DLL. This can significantly lower the complexity of an object's code and increase the readability and reuse of your code without forcing you to create and use Server-Side Includes that can be difficult to maintain for all of your objects.

As you know, you can instantiate application-scoped and session-scoped objects in the GLOBAL.ASA file. If any of these objects have a corresponding type library, you can declare its use in the application's GLOBAL.ASA file.

Parameters

FileName

The full physical (not virtual) path and filename of the type library file for the object in question. If you include both a FileName and a TypeLibraryUUID parameter to the TypeLibrary declaration, the web server will identify the type library using the filename. You must include either a FileName or a TypeLibraryUUID.

TypeLibraryUUID

The universally unique identification number of the type library. This is different from the ...

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.