Subject Re: [firebird-support] sample C code for connecting to embedded server?
Author Paul Reeves
On Thursday 08 January 2004 15:29, landydan wrote:
> I want to write a C application that can communicate with the embedded
> version of the Firebird server, but I would like to avoid having to
> use the special pre-processor that seems to be required in the sample
> files provided.

Why? It is a fast and effective way to generate the api calls.

Is there a way to make database calls directly from
> C or C++?

There are also examples in the same directory of calling the api directly.

And there is also ibpp (a sourceforge project) which is a C++ wrapper
around the Firebird C api.

> If so, is there some setup I need to do (like establishing
> an ODBC data source or something)?

Or you could use ODBC.

> I am hoping for a situation similar to SQLITE, where you just make
> SQL calls against a database file without a database server that
> requires a separate installation.
> Is there a place I can find an example of this?

I don't know if anyone has done any specific examples for the embedded
server because it isn't really any different to accessing a remote
server. The main practical difference is that you are loading the
embedded server library, not the normal firebird client library.
Internally everything else should be the same.

Paul Reeves
Supporting users of Firebird and InterBase