
Database access in a Non MFC application
Jamie,
I think ADO is going to be the better choice ---
DAO has been deprecated. If you want the MFC ODBC classes, you have to bring MFC support into your app.
Here are a couple of links that may get you stated -- check back here if you have problems.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado2...
http://msdn.microsoft.com/library/en-us/dnado/html/msdn_adorosest.asp
http://msdn.microsoft.com/library/en-us/ado270/htm/mdaexamples_vc01.asp
regards
roy fine
Quote:
> Hello all
> I have been developing a Win32 Non MFC application that I
> now what to attach to a database to store and query such
> information as client details etc. Does anyone know how I
> should go about this. I can find very little information
> anywhere, and I am not sure whether I should use ADO, DAO
> or somehow access the MFC API's without using MFC. If
> anyone has any suggestions or knows where I can find a
> suitable tutorial / Example I would be very grateful. I
> have managed to build an application that uses #import
> and then an ADODB connection, but I am unsure how I can
> use this to query the database. I can add rows / columns
> information using Execute.... but what do I use to return
> records from a query?
> Is ADO the answer, and if so how do I return information
> from a query?
> Please help.... Any information would be gratefully
> appreciated.
> Jamie