Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Not Recognizing Enums When Including Type Library in Global.asa

Status
Not open for further replies.

entaroadun

Programmer
Sep 27, 2002
583
US
I am including the ADO 2.0 type library in Global.asa for one of my apps. I am developing this in Interdev.

I would like to use the ADO constants defined in the library. However, they don't work. Code statements using the literal values work. Code statements using the enums don't.

I am developing in Visual Interdev, and Interdev recognizes the type library include. I know this because the AutoComplete boxes appear when I reference ADO objects.

Is there something I have to do to get the type library to load? I know the METADATA tag syntax is correct. I am running ASP 3.0 on IIS 5.1 on a W2K machine. Please help!
 
the constant from adodb typelib are not referenced from global.asa , it's too much darn information
You should make an asp page with the constant of ADODB as assignments, like this

adStateClosed = 0

and then make an html include of this page only where u need it.

Beware of not loading too much info, only the types you need, this is not Visual Basic, is not a in-process load
 
I am including the file using the METADATA tag. According to all documentation I have run across, this is an in-process load. According to all sources I have run across, the enums should work for ASP 3.0. Am I missing something?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top