Discussion Locked

Connecting C++ with database

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Can anyone help me how to connect C++ with any backend(acess,oracle).Please do not answer for Vc++

1 reply

by andrew

(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)

This discussion is closed to new replies.