Data Access Using ADO.NET (C++/CLI)

 

ADO.NET is the .NET Framework API for data access and provides power and ease of use unmatched by previous data access solutions. This section describes some of the issues involving ADO.NET that are unique to Visual C++ users, such as marshaling native types.

ADO.NET runs under the Common Language Runtime (CLR). Therefore, any application that interacts with ADO.NET must also target the CLR. However, that does not mean that native applications cannot use ADO.NET. These examples will demonstrate how to interact with an ADO.NET database from native code.

How to: Marshal ANSI Strings for ADO.NET (C++/CLI)

How to: Marshal BSTR Strings for ADO.NET (C++/CLI)

How to: Marshal Unicode Strings for ADO.NET (C++/CLI)

How to: Marshal a VARIANT for ADO.NET (C++/CLI)

How to: Marshal a SAFEARRAY for ADO.NET (C++/CLI)

SectionDescription
ADO.NETProvides an overview of ADO.NET, a set of classes that expose data access services to the .NET programmer.

.NET Programming with C++/CLI (Visual C++)
Native and .NET Interoperability

Show: