Visual J++: Code Sample Information

The Visual J++ simple provider code sample is located in ..\Samples\DataAccess\Osp\Vj and consists of the files described in the following table.

File name

Description

MyDataSource.java

Implementation for IDataSource.

MyOSPObject.java

Java class module containing the following:

  • Routines to create an internal table, load data into the table from an external file, and save the data.

  • OSP method implementations.

Ospsampj.dll

OSP Visual J++ sample DLL.

SampleOSP_VJ.sln

Visual J++ 6.0 solution file for this sample.

SampleOSP_VJ.reg

Copy of the RegisterProvider.reg file for use with the Visual J++ sample.

SampleOSP_VJ.vjp

Visual J++ project file for the sample.

Important

This feature will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Instead, write a fully functional OLE DB provider using the native OLE DB interfaces.