MDAC 2.5 SDK - OLE DB Providers
OSP Toolkit


 

Microsoft Visual J++

Information and Guidelines

Following is an outline of the basic steps needed to build an OLE DB Simple Provider in Visual J++ 6.0.

To build the OSP component using Visual J++

  1. Create a Java application.

  2. Implement IDataSource on the Java application.

  3. Implement the methods for OLEDBSimpleProvider with the object (at least once).

Registration

Visual J++, when building a COM DLL, will generate the ProgID for the OSP Data Object. This ProgID is <Project Name>.<class name of the OSP Data Object>. This is the same way that Visual Basic generates the ProgID.

Programming Notes

Note   To run the OSP Java sample, ensure that the virtual machine can locate the sample's compiled class files by adding their location to the Java class path search order. You can use the CLASSPATH environment variable for this purpose.