Database library recommendations

This is a discussion on Database library recommendations within the C++ Programming forums, part of the General Programming Boards category; I'm working (or fiddling with) a program that loads data from a bakers dozen of text files into structures + ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    46

    Database library recommendations

    I'm working (or fiddling with) a program that loads data from a bakers dozen of text files into structures + a number of arrays then dumps them into binary files (then reloads the binary files(?)*).

    Anyway, I've changed a lot of data types in an attempt to support Unicode text in these files and (unsurprisingly) I broke stuff along the way. I'm currently slowly working my way through the code to see if I can work out where I broke it and how to fix it, but it occurred to me that it might be simpler to scrap the whole system and use a proper (if basic) database instead.

    The requirements for any such database driver / library would be a) Can handle unicode text well. b) Will work with VC++. c) Is free (for non-commercial use, anyway)

    It would be nice if it also works with other platforms as well for later.

    So basically, I have two questions.

    1. Does switching to a database seem like a sensible idea?
    2. What library / driver / approach would you recommend?

    * Yeah, that confuses me too.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    If you want to use the database as a replacement for local files, SQLite is probably the easiest to integrate. It has a native accessor API, too.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    46
    Quote Originally Posted by CornedBee View Post
    If you want to use the database as a replacement for local files, SQLite is probably the easiest to integrate. It has a native accessor API, too.
    Yes, they're all local files - no internet / sharing / network facilities should be required. I'll have a look at SQLite.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommendations On A Generic Library For C
    By tristan70 in forum C Programming
    Replies: 0
    Last Post: 04-04-2009, 09:57 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 07:04 AM
  3. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 02:09 PM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. Database Library or Api
    By face_master in forum C++ Programming
    Replies: 1
    Last Post: 11-02-2002, 07:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21