I've searched in this forum and on the internet and I didn't find. I want an example of code to connect from Dev-C++ code to a MsAccess database. Please somebody help me. I just need the code to make the connection.
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you want to access a database in general you can use ODBC. It works with MS Access as well. (The alternative is to use Micro$oft's COM which is no easy task.)
I posted something on the Web which shows the basic code on how to use ODBC with C/C++.
It comes with sample databases and test program so you should have enough to get started. If you can figure out what the hell the code is doing then.....
BlakJak :]
http://blakjak.port5.com/ and follow the links to ODBC on the left. For some reason the site is down at the moment. Must be back-up time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've searched in this forum and on the internet and I didn't find. I want an example of code to connect from Dev-C++ code to a MsAccess database. Please somebody help me. I just need the code to make the connection.
Thanks in advance.
No " Dev-C++ code "... it is only the IDE for the gcc compiler.
j@ck_
If you want to access a database in general you can use ODBC. It works with MS Access as well. (The alternative is to use Micro$oft's COM which is no easy task.)
I posted something on the Web which shows the basic code on how to use ODBC with C/C++.
It comes with sample databases and test program so you should have enough to get started. If you can figure out what the hell the code is doing then.....
BlakJak :]
http://blakjak.port5.com/ and follow the links to ODBC on the left. For some reason the site is down at the moment. Must be back-up time.
Thanks, I'm gonna look at this when I'll get access to the site.
Have a nice day.
Thanks, I'm gonna look at this when I'll get access to the site.
Have a nice day.