944,205 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3937
  • C++ RSS
Jul 24th, 2005
0

File-based Database Api

Expand Post »
Hi,

I would like to be able to use an api for reading/writing to a file database. Basically, I will have to write programs that have recovery (meaning if it shuts down, etc. it has a file/files to recover from). I could attempt to write something myself but if it exists already, I would rather just use it....

Winbatch
Similar Threads
Reputation Points: 68
Solved Threads: 18
Posting Pro in Training
winbatch is offline Offline
466 posts
since Feb 2005
Jul 24th, 2005
0

Re: File-based Database Api

If you use Visual C++, you can use the CRecordSet (and its variants) to do all the file handling for you. It works very well (in my experience) and will save automatically thru the database application.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
steveh is offline Offline
15 posts
since Nov 2004
Jul 24th, 2005
0

Re: File-based Database Api

I am using visual studio .net, so I will look into that, but I was hoping for something more portable, as I also use SUN Solaris
Reputation Points: 68
Solved Threads: 18
Posting Pro in Training
winbatch is offline Offline
466 posts
since Feb 2005
Jul 24th, 2005
0

Re: File-based Database Api

If you are using Visual C++, MFC has a class called CRecordSet (there are variants of this, as well) that handle all the I/O for you. In my experience, they work very well. In fact , your app won't even need a file menu since the database application will save your files for you.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
steveh is offline Offline
15 posts
since Nov 2004
Jul 24th, 2005
0

Re: File-based Database Api

Thanks, but again I'm looking for something using standard c++/cross platform so that I can run it on windows as well as SUN.
Reputation Points: 68
Solved Threads: 18
Posting Pro in Training
winbatch is offline Offline
466 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: List of Codes ? Encyclopedia?
Next Thread in C++ Forum Timeline: An array can use STL functions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC