Menu

RE: opening a file from a database

2002-08-19
2012-09-26
  • Nobody/Anonymous

    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!

     
    • Jack Black

      Jack Black - 2002-08-19

      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 :)

       
    • Nobody/Anonymous

      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!

       
    • Nobody/Anonymous

      Hi there,

      fopen will just open the file that is in the programs directory, unless you specify a full path.

      Kip

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.