Microsoft KB Archive/172550
BUG: ProgID and VersionIndependentProgID Switched for ADO 1.0
The information in this article applies to:
- ActiveX Data Objects (ADO), versions 1.0, 1.5
If you explicitly specify values for the CLSID of ADO 1.0 objects, requesting either the ProgID or VersionIndependentProgID values in the registry, these values do not have the expected effect.
ProgIDFromCLSID returns the version independent ProgID instead of the dependent ProgID because of this bug.
The values for the ProgID and VersionIndependentProgID values in the CLSID for each ADO object were reversed. For example, for the CLSID of the ADO 1.0 Command object, located in the registry at the following the value of ProgID should be ADODB.Command.1, however, instead it is ADODB.Command:
The value of VersionIndependentProgID should be ADODB.Command but it is ADODB.Command.1.
For ADO version 1.0, if you want the ProgID, use the VersionIndependentProgID, and vice-versa for the VersionIndependentProgID.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Typically, users come at the CLSID of an object via the PROGID. This includes Visual Basic's CreateObject, so this problem does not cause a problem for Visual Basic users.
The only time this bug would create a problem is if you have ADO version 1.0 and a later version on the same machine. If you just have 1.0 installed, then it is a moot point since the dependent and independent ProgID's point to the same clsid.
Additional query words: kbdse kbDatabase kbADO100bug kbADO110bug kbADO150fix
Keywords : kbADO Version : WINDOWS:1.0,1.5 Platform : WINDOWS Issue type : kbbug
Last Reviewed: February 14, 1999