Hello John,
"reverse engineering" isn't necessary.
SQLDBC_C contains the same functionality as SQLDBC. But all C++ methods are coded as C
functions with the following naming convention.
<SQLDBC_classname>_<SQLDBC_methode_name>[_<variante_name>](SQLDBC_object_reference[,
argument list])
Example:
C++ declaration
class SQLDBC_Statement {
SQLDBC_Retcode execute(const char *sql, SQLDBC_Length sqlLength, const
SQLDBC_StringEncoding encoding);
}
C declaration:
SQLDBC_Retcode SQLDBC_Statement_execute (SQLDBC_Statement *hdl, char *sql,
SQLDBC_Length sqlLength, SQLDBC_StringEncodingType_Encoding encoding)
Sometimes for C++ variants of the same method the C function names are appended with a
postfix.
You will find all C functions with documentation in the SQLDBC online documentation at
http://dev.mysql.com/doc/maxdb/sqldbc/en/index.html -> File List -> SQLDBC_C.h
For Perl examples please take a look to the Perl MaxDB:DBD driver located on CPAN at
http://search.cpan.org/~maxdb/DBD-MaxDB-7.5.00.19/MaxDB.pm
Regards
Burkhard
-----Urspr�ngliche Nachricht-----
Von: John Ulyate [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 1. November 2004 08:53
An: [EMAIL PROTECTED]
Betreff: SQLDBC_C vs. SQLDBC - Examples of calls please
Wichtigkeit: Hoch
Good morning all,
I have been studying MaxDB for the past two weeks - what an exceptional
program!
We have a substantial investment in several packages developed in Gupta's
SQLWindows - SQLBase. Where the IDE is fine, the DBMS lacks certain features
which is very nicely covered by MaxDB, and the natural progression would be
to continue to use the developed clients, but to migrate the backend to
MaxDB via the SQLDBC interface.
Ok now, the question of getting the clients written in SQLWindows to talk to
MaxDB - ODBC is ok but we prefer the SQLDBC interface for several reasons.
SAP AG have supplied two libraries - sqldbc.dll and sqldbc_c.dll. There is a
problem with the SQLWindows IDE that it can only attach external libraries
of C format and structure - so the sqldbc_c.dll works fine.
I have studied the SQLDBC documentation, and have managed to decipher the
function layout and structure within sqldbc_c.dll. I can attach to the dll
and have successfully called some peripheral functions. The supplied example
in the documentation covers some calls in the c++ version of sqldbc, but I
need some examples using the sqldbc_c structure. I suppose any example
written in PERL will be very handy.
Our experience is that the "reverse engineering" of working examples is by
far the quickest and most cost effective way of assimilating the knowledge
required to effectively use any new library.
If anyone can assist, I will be most grateful.
Regards,
John Ulyate
--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]