Visual C++ provides several ways to work with databases.
The Microsoft Foundation Classes (MFC) library supplies classes for programming with Open Database Connectivity (ODBC). For more information about using the
ODBC API without MFC, see the Open Database Connectivity (ODBC)
SDK in MSDN.
OLE DB is a set of COM interfaces that provide uniform access to data in diverse information sources and formats. The OLE DB templates are C++ templates that
make the high-performance OLE DB database technology easier to use by providing classes that implement many commonly used OLE DB interfaces. This template library is divided into consumer templates and provider templates. For more information about OLE programming,
see OLE DB Programming
ADO is implemented with COM (Component Object Model) interfaces. However, it is easier for programmers to work with COM in certain programming languages than
others. For example, nearly all the details of using COM are handled implicitly for Visual Basic programmers, whereas Visual C++ programmers must attend to those details themselves. For more information see
Visual C++ ADO programming
ADO.NET is the .NET Framework API for data access and provides power and ease of use unmatched by previous data access solutions. It 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. For more information, see
Data Access Using ADO.NET in C++