DOC: Visual Basic OSP Sample in MDAC SDK Creates Erroneous Registry Entry (293807)



The information in this article applies to:

  • Microsoft OLE DB 2.1
  • Microsoft OLE DB 2.5
  • Microsoft OLE DB 2.6

This article was previously published under Q293807

SUMMARY

The Microsoft Data Access Components Software Development Kit (MDAC SDK) installs a Visual Basic sample source code project named SampleOSP_VB for the OLE DB Simple Provider (OSP) that includes a .reg file named SampleOSP_VB.reg. This .reg file creates the Windows Registry entries that the sample project requires. The MDAC 2.6 SDK installs SampleOSP_VB in the C:\Program Files\Microsoft Data Access SDK\Samples\OSP\Vb folder.

This registry file contains the following erroneous entry:

[HKEY_CLASSES_ROOT\CLSID\{...}\OSP Data Object] @="SampleOSP_VB.MyDataSourceObject"

MORE INFORMATION

The registry entry should appear as follows:

[HKEY_CLASSES_ROOT\CLSID\{...}\OSP Data Object] @="SampleOSP_VB.MyDataSource"

You can use the Regsvr32.exe utility to register the component and correct the registry entry.

REFERENCES

The MDAC SDK is available for download from the following Microsoft Universal Data Access Web site:

Modification Type:MinorLast Reviewed:4/24/2003
Keywords:kbbug kbDatabase kbdocerr kbnofix KB293807