General discussion

Locked

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.

1 total post (Page 1 of 1)  
| 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)

http://support.microsoft.com/support/kb/articles/Q175/3/83.ASP

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

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsentpro/html/veconaccessingdatawithodbc.asp

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

Back to Software Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums