Subject Re: [firebird-support] Re: OLEDB VERY SLOW. Need > 1000 transact ions /s
Author Elmar Haneke
Epstein, Ed schrieb:
> I have all of the manuals. However it only seems to be for C++. I am using
> VB6. I need to know how to reference the API functions themselves inside of
> VB.

The API manual (from the IB6 Documentation) is written for
C-Programmers (not C++).

Writing the declare statements for the functions from ibase.h is
straight forward in most cases. But, VB cannot call functions declared
as "ISC_EXPORT_VARARG" since there is no option to select "cdecl"
calling convention - VB does require stdcall conventions. For this
reason you presumably cannot write an Firebird-Driver in VB language,
since "isc_start_transaction" is a VARARG function.

> This is why i previously mentioned that I dont really have the skill to find
> out all the statements to declare all the Interbase API functions.

I would assume that you need only few functions - but
"isc_start_transaction" is one of them.

> I beleive that if I had all those statements, that I could, through trial
> and error, eventually create a working frontend that would use classes built
> around those functions.

If you really do need an import tool for an single table only I would
assume it to be more cost-efficient for you to hire someone to do this
small job than to learn the required skill to do the job. I would
assume that an simple import-utility written in C should be ready
within a day.

Elmar