PRB: Compiler Errors After Upgrading to Remote Data Service 2.0 (191734)



The information in this article applies to:

  • Remote Data Service for ADO
  • Remote Data Service for ADO 2.0
  • Remote Data Service for ADO 2.1

This article was previously published under Q191734

SYMPTOMS

If you have existing Remote Data Service (RDS) 1.5 Code in Visual C++, and try to compile it after installing RDS 2.0, you may receive the following errors:
DIBindMgrPtr is not a member of 'RDS'
-or-
DIDataspacePtr is not a member of 'RDS'

CAUSE

These interfaces were removed from Remote Data Service 2.0.

RESOLUTION

The missing interfaces are dispinterfaces. The equivalent dual interfaces and pointers, IBindMgrPtr and IDataspacePtr, can be used.

The dual interface syntax is slightly different than the dispinterfaces. Check the .tli and .tlh files generated by #import for the new syntax.

In most cases, you can replace the DIDataspacePtr's or DIBindMgrPtr's in your code with IDataspacePtr or IBindMgrPtr, respectively, and it will work.

STATUS

This behavior is by design.

Modification Type:MinorLast Reviewed:8/19/2005
Keywords:kbprb KB191734