Skip to content

Latest commit

 

History

History
63 lines (54 loc) · 2.35 KB

File metadata and controls

63 lines (54 loc) · 2.35 KB
title Data Access Using ADO.NET (C++/CLI) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
ADO.NET [C++]
.NET Framework [C++], data access
databases [C++], accessing in C++
data access [C++], ADO.NET
data [C++], ADO.NET
ms.assetid b0cd987d-1ea7-4f76-ba01-cbd52503d06d
caps.latest.revision 12
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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.

In This Section

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)

Related Sections

Section Description
ADO.NET Provides an overview of ADO.NET, a set of classes that expose data access services to the .NET programmer.

See Also

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