Microsoft KB Archive/293807

= DOC: Visual Basic OSP Sample in MDAC SDK Creates Erroneous Registry Entry =

Article ID: 293807

Article Last Modified on 4/24/2003

-

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] @=&quot;SampleOSP_VB.MyDataSourceObject&quot;



MORE INFORMATION
The registry entry should appear as follows:

[HKEY_CLASSES_ROOT\CLSID\{...}\OSP Data Object] @=&quot;SampleOSP_VB.MyDataSource&quot;

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

