Subject Re: [firebird-support] Dumb Newbie Question: fbembed.dll and GetProcAddress
Author Helen Borrie
At 08:31 AM 24/03/2006, you wrote:
>I'm just beginning my research into using Firebird with our current server
>product. I'm interested in the embedded version (since our server
>application is a stand alone app that needs database access, without any
>clients accessing the database).
>
>I've downloaded and installed the Windows embedded kit. I've got the
>fbembed.dll loaded (and unloaded at exit).
>Now, I'm trying to get the appropriate procedure addresses, so I can start
>calling functions.
>But, I don't know the "types" of each proc, not the name of each proc.
>
>Is there a document describing the various procedures contained within the
>dll, and the function prototypes? I've looked around, with no success.
>
>I'm doing the following:
>m_Hand = LoadLibrary(_T("fbembed.dll"));
>FARPROC x = GetProcAddress(m_Hand, "isc_dsql_execute_immediate");
>// "x" is a function ptr, but I don't know the arguments to send, or what
>comes back.

All communications through the API are done via named formal
structures, that you can find documented in APIGuide.pdf - the
quickest way to get it is to Google for it. If you download the full
server kit, you'll find the include directory contains ibase.h, which
has all the prototypes; and the examples directory has..um..examples.

Tip: try ibpp (www.ibpp.org) which has the entire API in C++ wrappers.
There is also a discussion list:
<mailto:ibpp-discuss-request@...?subject=subscribe>

./heLen