PRB: Errors with IDataspace and IBindMgr Interfaces in RDS 1.5 (191736)



The information in this article applies to:

  • Remote Data Service for ADO 1.5
  • Remote Data Service for ADO 2.0

This article was previously published under Q191736

SYMPTOMS

When you use #import on the Remote Data Service (RDS) files, import produces IDataspacePtr and IBindMgrPtr smart pointers. Calling the CreateInstance() function on the smart pointers may return the following HRESULT:
0x80004002 "No such interface supported"
Trying to call a method on these smart pointers may cause the following error to appear:
0x80004003 "Invalid Pointer"
The resultant smart pointers will be NULL.

CAUSE

These interfaces are exposed in the type library but are not implemented.

RESOLUTION

To resolve this problem, use the DIBindMgr and DIDataspace dispinterfaces instead. Note that this resolution is only for RDS 1.5. The dispinterfaces have been removed for RDS 2.0 and programmers must use the IBindmgr and IDataspace interfaces. In RDS 2.0 these have been implemented fully.

STATUS

This behavior is by design.

Modification Type:MinorLast Reviewed:3/2/2005
Keywords:kbDatabase kbprb KB191736