Microsoft KB Archive/182782

{|
 * width="100%"|

FILE: Adovj.exe Demonstrates How to Use ADO with Visual J++
The information in this article applies to:
 * ActiveX Data Objects (ADO), version 1.5

SUMMARY
Adovj.exe is a self-extracting compressed file containing sample code that demonstrates how to use ActiveX Data Objects (ADO) with Visual J++.

MORE INFORMATION
The following file is available for download from the Microsoft Software Library:

~ Adovj.exe (size: 59476 bytes) For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base: ARTICLE-ID: Q119591 TITLE    : How to Obtain Microsoft Support Files from Online Services

Configuring ADOVJ for Your Computer
The ADOVJ sample uses an Access .mdb file, which is included with the sample, called Adodemo.mdb. You need to create an ODBC data source named AdoDemo and have it reference this .mdb file. In addition, one of the command buttons expects SQL Server to be available on your network, and defaults to a local server. If you do not have SQL Server on your local computer, then change the value of the assignment of the SQLServerName variable (SQLServerName = "YourSQLserver";) found in the InputOutputReturnParams method in ADOCore.Java.

Before building the sample, use the Java Typelib Wizard to import the ADO typelib. Invoke the wizard on the following:

'Microsoft ActiveX Data Objects 1.5 Library'

About the ADO* Series of Samples
This is one of several identical samples implemented using ADO within various products, as listed below. The advantage is that these articles have an identical interface/functionality, demonstrating both the similarities and differences in using ADO with different languages and environments.

QNumber     Title Q172403     FILE: Adovb.exe Demonstrates How to Use ADO with Visual Basic Q174565     FILE: Adovc.exe Demonstrates How to Use ADO with Visual C++ Q182782     FILE: Adovj.exe Demonstrates How to Use ADO with Visual J++ Q185033     FILE: Adoacc.exe Demonstrates Using ADO with Access 97