WFCADO Demonstrates Using WFC ADO with Visual J++ 6.0

ID: Q194813


The information in this article applies to:


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 file is available for download from the Microsoft Software Library:

~ WFCado.exe

Release Date: OCT-06-1998

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

Q119591 How to Obtain Microsoft Support Files from Online Services



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.0 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:
http://www.microsoft.com/data/mdac2.htm


REFERENCES

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

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


(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Rick Anderson, Microsoft Corporation.

Additional query words:


Keywords          : kbfile kbsample kbVJ600 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: February 10, 1999