[ back to toc ]

APIs and ODBC

Date: 2002/02/01 08:45

Q:
Hi,

I am relatively new to C, but have some experience in C++ and JAVA. I have
been tasked to set up a banking card authorisation server (W2K)which is
required to perform an API call through an in-house DLL, and access an MS
SQL Server 7.0 database read/write using ODBC or DAO.

Could you give me some help on the code required as I cant seem to find
any clear examples, only ones of WIN API usage which I fear is not the
same. I have used API in VB as well as ODBC so I am not new to these
aspects, just the C code.

Much greatful for any help.

Matt
A:
I just have uploaded ScriptBasic v1.0b28 to www.scriptbasic.com a few
weeks ago. This new version supports ODBC connections. This is implemented
in an external module. ScriptBasic and external modules are written in C.
Download the source and you will find the ODBC module. That may give you a
jump start as example code.

Other than that: read the manual of ODBCv2.0 from Microsoft.it hsould also
be available on the Internet.

Regards,
Peter
Q:
The code you suggested was great and helped a lot, however I would also
like some examples of non WIN API calls (in-house DLLs). Just in case you
have any examples lying around.

Yours greatfully

Matt

A:
I can't believe that anyone could send you code example of an "in-house"
DLL. I suppose that "in-house" means that they have developed something
that you are supposed to use. I or anyone else can not have examples of
that.

Regards,
Peter

[ back to toc ]