Visual Basic: Code Sample Information

This sample uses class properties introduced in Visual Basic 6. It will not work with earlier versions of Visual Basic.  For more information on building simple providers with Visual Basic 5, refer to the previous section, Visual Basic.

The Visual Basic Simple Provider code sample is located in ..\samples\osp\vb and consists of the following files:

File Name Description
SampleOSP.vbp Visual Basic project file for the sample.
MyDataSource.cls Class module for msDataSourceObject.
MyOSPObject.cls 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.
SampleOSP_VB.reg Copy of the RegisterProvider.reg file for use with the Visual Basic sample.