It is no easy task. There are two ways you can do it (that I can think of).
1) Use ODBC.
2) Use COM.
I only know ODBC well and the code is complicated. I have developed an ODBC wrapper in C++ which makes the job simpler but you need to be good at memory management if you wish to use it.
You can get some examples of how to program COM from the Microsoft Knowledge base. (For me that is even more complicated.)
Let me know.
BlakJak :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
will you please give me the code if you don't mind or if it is too much trouble,let me tell you what i've been trying to do....
see I want to create a program for a video library that only needs to read the customer's identity number and is able to record the date a tape is returned or/and borrowed and can also work out the fine if any.Now, I was thinking of creating a database for the customers in access then simply write code for recording the date borrowed and returned and working out the fine if any.
if ypu have any better ideas I'd very much appreciate it if you share them with me.Lastly how do you use 'fopen' and in which directory is it found.Sorry for dumping all of my problems on you but I am kind of new to C.
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
can anyone show me the code for opening a dbase file in MS ACCESS and also the code for getting a a single record from the dBase. thanks!
It is no easy task. There are two ways you can do it (that I can think of).
1) Use ODBC.
2) Use COM.
I only know ODBC well and the code is complicated. I have developed an ODBC wrapper in C++ which makes the job simpler but you need to be good at memory management if you wish to use it.
You can get some examples of how to program COM from the Microsoft Knowledge base. (For me that is even more complicated.)
Let me know.
BlakJak :)
will you please give me the code if you don't mind or if it is too much trouble,let me tell you what i've been trying to do....
see I want to create a program for a video library that only needs to read the customer's identity number and is able to record the date a tape is returned or/and borrowed and can also work out the fine if any.Now, I was thinking of creating a database for the customers in access then simply write code for recording the date borrowed and returned and working out the fine if any.
if ypu have any better ideas I'd very much appreciate it if you share them with me.Lastly how do you use 'fopen' and in which directory is it found.Sorry for dumping all of my problems on you but I am kind of new to C.
thanks!
Hi there,
fopen will just open the file that is in the programs directory, unless you specify a full path.
Kip