Microsoft KB Archive/184382

= How to use the Remote Data Service (RDS) of ADO in Visual C++ =

Article ID: 184382

Article Last Modified on 2/15/2007

-

APPLIES TO


 * Microsoft Visual C++ 2005 Express Edition
 * Microsoft Visual C++ .NET 2003 Standard Edition
 * Microsoft Visual C++ .NET 2002 Standard Edition
 * Microsoft Visual C++ 4.2 Enterprise Edition
 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 4.2 Professional Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition
 * Microsoft Plus! Game Pack: Cards & Puzzles
 * Microsoft Remote Data Services 1.1
 * Microsoft Remote Data Services 1.5
 * Remote Data Service for ADO 2.0
 * Microsoft Remote Data Services 2.1
 * Remote Data Service for ADO 2.5

-



This article was previously published under Q184382



Note Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. Microsoft Visual C++ 2005 supports both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model.



SUMMARY
This article presents useful information for anyone wanting to make use of the Remote Data Service (RDS) of ADO within Visual C++. The following are topics covered in this article:
 * How to obtain the Remote Data Service
 * RDS resources/points of information
 * How to find RDS Knowledge Base articles
 * General guidelines for RDS in VC++



How to obtain the Remote Data Service
The Remote Data Service (RDS) consists of two sets of components; client side and server side. The client-side components ship with all the Microsoft products which ship full or subsets of Microsoft Data Access Components (MDAC), and Windows 2000, where MDAC is part of the operating system. Some of these products are:
 * Internet Explorer 4.0 (contains RDS Client 1.5)
 * Internet Information Server 4.0
 * Microsoft Data Access Components (the preferred method)
 * Data Access SDK
 * Platform SDK
 * Windows 2000

RDS components are shipped with MDAC. The latest version of both client-side and server-side components can be obtained with Microsoft Data Access Components (MDAC). To download MDAC, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/data/aa937730.aspx

RDS resources/points of information
The RDS Web Site, which contains the RDS components, is located at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmscrdsproperties.asp

How to find RDS Knowledge Base articles
To find RDS articles in the Microsoft Knowledge Base on the Web, visit the following Microsoft Web site:

http://support.microsoft.com

On this site, look for Remote Data Service.

For the MSDN or other non-Web-based Knowledge Base search mechanisms, use the keyword RDS, which is included in all RDS articles.

General guidelines for RDS in VC++
The best way to get RDS into your VC++ application is to use the #import command method After you #import a DLL, there will be a .tli and a .tlh file, such as msadco.tli and msadco.tlh, in the build directory. Looking through these files will provide the objects exposed, their methods, and the syntax.   #import "c:\program files\common files\system\msadc\msadco.dll" \\for the RDS Data Control.

#import "c:\program files\common files\system\msadc\msadcf.dll" \\for the Data Factory. Of course, you also need to #import Msador15.dll to get the recordset object used by RDS.

