WFCADO Demonstrates Using WFC ADO with Visual J++ 6.0 (194813)



The information in this article applies to:

  • Microsoft Visual J++ 6.0
  • ActiveX Data Objects (ADO) 2.1 SP2

This article was previously published under Q194813

SUMMARY

The WFCado sample demonstrates recordset navigation, insertion, update, and other ActiveX Data Objects (ADO) Recordset methods using the Windows Foundation Classes (WFC) version of ADO.

MORE INFORMATION

The following files are available for download from the Microsoft Download Center:
Release Date: OCT-06-1999

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. Wfcado.exe contains the following files:

FileName               Size (KB)
---------------------------------------------------------

adoCon.class              1
adoCon.java               1
adoConstants.class        1
codebase.dat              1
Form1.class               2
RS.sln                    1
RS.suo                    5
RS.vjp                    5
student.mdb               116
WFCado.class              9
WFCado.java               9
					

The sample looks for the file Student.mdb in the C:\ root directory. Either move the enclosed Student.mdb file to C:\ or change the strCon string in openConn().

The class adoCon.java is included so that you can use ADO constants instead of redefining those.

WFC/ADO provides a more convenient API to access ADO methods from java than accessing ADO from a COM wrapper. For example, with WFC/ADO, many methods accept native java types rather than VARIANTS as arguments.

You need to have ADO 2.x installed to run this sample. You can get ADO from the Microsoft Data Access Software Development Kit (SDK) and the Microsoft Data Access Components Version 2.0 from the following Web site:

REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

181733 FILE: Adovcbtd.exe #import Using UpdateBatch and CancelBatch


Modification Type:MinorLast Reviewed:3/7/2005
Keywords:kbdownload kbDatabase kbfile kbinfo kbSample KB194813 kbAudDeveloper