The Visual J++ Simple Provider code sample is located in ..\samples\osp\vj and consists of the following files:
File Name | Description |
SampleOSP_VJ.dsp | Visual J++ project file for the sample. |
MyOSPObject.java | Java class module containing the following:
|
MyDataSource.java | Java class for msDataSourceObject. |
SampleOSP_VJ.reg | Copy of the RegisterProvider.reg file for use with the Visual J++ sample. |
You will need to generate the Java interface definitions from SimpData.tlb and Msdatsrc.tlb (supplied with the Toolkit) for use when compiling your Java application. Use the tool appropriate for your version of Visual J++ (such as Javatlb) to generate these interface definitions.