Saturday, May 22, 2010

How do I do the DATA BASE CONNECTIVITY OF C Using MS Access?

It's a little unclear exactly what you want. You either want to use a database from a C program or you want to script an Access database.





If you want to connect to a database from a C program, you can use the ODBC database library (if you are on Windows). I think it is available on other OS's, but I am not 100% sure. ODBC can connect to a variety of database sources, Access included.





You can find more information about ODBC at http://msdn.microsoft.com/library/defaul... The library is complex and I suspect you may have difficulty with it.





The other possibility is you want to script an Access databsae. Access includes VBA (Visual basic for Applications). When you design the database in Access you can create forms, dialogs and attach code to buttons and database events. You can create moderate sized programs with this. More information on Access and VBA is here: http://msdn.microsoft.com/library/defaul...

How do I do the DATA BASE CONNECTIVITY OF C Using MS Access?
Either yuo have to program using visual c++ as c annot supports win32 programming.


or else make them communicate through another rogram which is running at miidle of these two for example a visual basic program which can write data from table in ms access into some file in encrypted form then c can read required data from same file , similarly writing in database can also be done!


let me know if my idea is working


kashyff@yahoo.com


BYE!
Reply:access was never really designed for that kind of stuff. You can do it but I wouldn't recommend it. try a different database lie SQL.


No comments:

Post a Comment