PRB: Compiler Errors After Upgrading to Remote Data Service 2.0
Article ID: 191734
Article Last Modified on 2/12/2007
APPLIES TO
- Microsoft Plus! Game Pack: Cards & Puzzles
- Remote Data Service for ADO 2.0
- Microsoft Remote Data Services 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.
Keywords: kbprb KB191734