devxlogo

Adding ADO 2.1 Reference to your VI6 project

Adding ADO 2.1 Reference to your VI6 project

To use the ADO constants, you’ve probably added this piece of code to each of your ASPs:

  

If you write reusable data access ASP code, you might have seen the problem where putting the server side include in each file resulted in a “constant redefined” error. A better way to solve this is by adding a project reference. Like Visual Basic, Visual Interdev allows you to add ActiveX components to the project. After you create a VI6 project, click the Projects menu and then select References. Select the ADO 2.x Library in the dialog box and hit okay. If you open the global.asa file, you’ll notice that VI6 added some special tags. Now, you can use the ADO constants throughout your Web application without that server side include.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist