NCS Logo - Click for home page Northstar Developer Center
Platforms
All Platforms
.NET Framework (1.x - 4.x)
Active Server Pages
ASP.NET
C#
SQL Server
VB.NET
Visual Basic

Keywords
.NET Data Types
.NET E-mail
.NET Events
.NET Functions
.NET Object Programming
.NET System.Configuration
.NET System.Diagnostics
.NET System.IO
.NET System.Net
.NET System.Net.Sockets
Active Data Objects
ASP Architecture
ASP Black Belt
ASP Built-in Functions
ASP Built-in Objects
ASP Debugging
ASP Performance
ASP Security
ASP Syntax
ASP.NET Authentication
ASP.NET Controls
ASP.NET Data Access
ASP.NET Features
ASP.NET Master Pages
ASP.NET Page Events
ASP.NET Security
ASP.NET ViewState
Atom
Certifications
COM, DCOM, COM+
Data Access
E-Mail
Errors
Exporting Data
HTML Tips
IIS
Object-Oriented Programming
RSS
SQL
Uncategorized ASP Tips
VB API Programming
VB Forms
VB Syntax
XML

Book Support
Visual Basic 6 Bible
ASP Bible
ASP Weekend Crash Course
ASP.NET At Work
Creating Web Services

Using the METADATA Tag

Written by Eric Smith, Northstar Computer Systems LLC

In a previous tip, you learned how to reference the ADO library in your ASP file. This lets you use the constants that are documented along with the ADO library. Here's the code you need at the top of your ASP file. (this should all go on one line)
<!-- METADATA TYPE="typelib" FILE="c:\program files\common files\system\ado\msado15.dll"-->
You can use this tag for any DLL you happen to be using. For instance, if you're using the FileSystemObject and related objects, you can reference the Microsoft Scripting Runtime, which is the scrrun.dll...you can search your system for it. In Windows 2000, this file is located in the \WINNT\System32 directory, so the tag would be:
<!-- METADATA TYPE="typelib" FILE="c:\winnt\system32\scrrun.dll"-->

Keywords: [ Uncategorized ASP Tips ]

Publication Date: 7/1/2000