You could use Microsoft Access, but you could also use Firebird embedded. This will let you migrate to Firebird client/server by changing a couple of lines of code.
Please see sample code attached. Xenblaise, could you modify your first post to include this sample? Thanks.
Due to space constraints, I couldn't upload the required dlls/exes.
For now, and hopefully in future, you can download everything (source code, dlls) from
http://dl.dropbox.com/u/20995033/FirebirdSampleFull.zipThanks.
<Edited: 2 August 2011: added programmatic database creation using sqldb, so no need for isql.exe anymore.>
Contents of readme:
This is a Firebird embedded database sample.
You will need to download the Firebird embedded engine (dlls) - see below.
It is adapted from the Microsoft Access by Xenblaise and SQLite sample by RocaRobin.
It demonstrates how to create an embedded database if it doesn't exist, how to connect, bind grids to the data and edit/update/delete data.
For now, this sample works only on Windows. Advice on how to run it on Linux is welcome.
1. Getting the required files
=================
Due to space constraints, the Firebird dll files are not included in this sample.
1.1 Getting the Firebird embedded dlls
========================
Download Firebird Embedded 2.5 from
http://www.firebirdsql.org/en/firebird-2-5/(You can use a newer version if available)
Extract these files to your application directory:
fbembed.dll
firebird.msg
ib_util.dll
icudt30.dll
icuin30.dll
icuuc30.dll
Microsoft.VC80.CRT.manifest
msvcp80.dll
msvcr80.dll
Because we will need these dlls both while in design mode (in the IDE) and while running your application, make sure that you compile your application into the source directory, so no fancy playing around with crosscompiling to various subdirectories...