WFCADO Demonstrates Using WFC ADO with Visual J++ 6.0

ID: Q194813


The information in this article applies to:
  • Microsoft Visual J++, version 6.0
  • ActiveX Data Objects (ADO), version 2.1 SP2


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. Click the file names below to download the files:

Wfcado.exe
Release Date: OCT-06-1999

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center. The following file is available for download from the Microsoft Software Library:

~ WFCado.exe

Release Date: OCT-06-1998



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:
http://www.microsoft.com/data/.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 kbDatabase kbVJ600 kbGrpMDAC kbDSupport kbADO210sp2
Version : WINDOWS:2.1 SP2,6.0
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.