Re: manipulating Access databases in C++
* cplxphil@gmail.com:
Hello all,
I am trying to query, store data into, and move data from a Microsoft
Access database using C++. I posted on the microsoft.public.access
group, and was given some information about how to do this using a
Windows script; however, I need to do this in C++. The posters on the
forum recommended that I post to a C++ forum instead.
Also, I should note that I do not have access to Microsoft Visual C++;
I am using a free compiler, Bloodshed Dev C++. I have working
academic knowledge of C++, mostly from working in a UNIX environment;
I know very little about Windows programming.
Can anyone assist me in figuring out how to do queries to an MS Access
database from C++? Any help anyone can provide would be appreciated.
You can access databases by using database libraries.
Look up e.g. the (portable, free) Poco library.
I haven't used it by I'm fairly sure that it provides e.g. ODBC access.
Someone over in [comp.lang.c++] reported that it was difficult to make Poco work
with MinGW g++, that is, the compiler you're probably using (Dev C++ isn't a
compiler but an IDE that can use various compilers, but MinGW g++ is default).
If so consider Googling for a more g++-friendly database access library, and/or
e.g. look up the C++ libraries FAQ.
Cheers & hth.,
- Alf
--
Due to hosting requirements I need visits to <url: http://alfps.izfree.com/>.
No ads, and there is some C++ stuff! :-) Just going there is good. Linking
to it is even better! Thanks in advance!
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]