SYMPTOMS
On a clean Windows 95 or Windows 98 machine with DCOM95 or DCOM98
installed, compile the following in a .cpp file:
#import "c:\program files\common files\system\ado\msado15.dll"
RESULT: You get the following error messages:
error C2504: '_Connection15' : base class undefined
error C2504: '_Recordset15' : base class undefined
error C2504: 'Fields15' : base class undefined
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Connection *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::_Recordset *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::Fields *const ' to 'struct IUnknown *'
error C2664: '_com_issue_errorex' : cannot convert parameter 2 from
'struct ADODB::Fields *const ' to 'struct IUnknown *'
NOTE: This problem also occurs on Windows NT 4.0, and the resolution given
applies.
REFERENCES
For additional information about how to obtain Visual Studio 97, Service Pack 3, please see the following
article in the Microsoft Knowledge Base:
170365 Visual Studio 97 Service Packs - What, Where, and Why