General discussion


Connecting C++ with database

By rdgokulkumar ·
Can anyone help me how to connect C++ with any backend(acess,oracle).Please do not answer for Vc++

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Connecting C++ with database

by andrew In reply to Connecting C++ with datab ...

(I'm gonna guess you're on a Microsoft platform since you mentioned Access)

If you're familiar with COM, the ActiveX Data Objects (ADO) provide an easy way to connect to any ODBC compliant database (or you can use OLEDB directly).

Here's a link about it: (sorry, the example is VC++, but you can take what you need as far as ADO object instantiation goes)

If you don't like that, you can use the ODBC API directly. Here's a link about that:

(make sure there are no spaces in the above URLs)

Related Discussions

Related Forums