Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Using occi9 dll with Borland CBuilder

Re: Using occi9 dll with Borland CBuilder

From: Norman Dunbar <Norman_at_RE-MO-VE.BountifulSolutions.co.uk>
Date: Thu, 04 Dec 2003 07:56:54 +0000
Message-ID: <pan.2003.12.04.07.56.53.676177@RE-MO-VE.BountifulSolutions.co.uk>


On Wed, 03 Dec 2003 17:13:31 +0100, akush wrote:

> i want to use the oracle c++ call interface <SNIP>

Damnation !

Sorry, please ignore my other post about creating an oci.lib for use with C++ builder. I didn't read your post correctly, you want to use the C++ OCI routines, not the C ones.

Quite simply, you cannot.

The OCI.DLL is in C format so the Borland tools can be used to create a compatible lib file for normal C, but the OCCI library is in MS Visual C++ (contradiction in terms, it isn't visual and it isn't (quite) C++ either) format and this is totally incompatible with the Borland tools.

I raised a TAR some time back asking for a Borland compatible OCCI library or the source code to build my own - they refused point blank. Only the list of supported compilers are supported they said. As for getting the source code, they laughed out loud.

The best thing you can do to use C++ with Borland is to get hold of the free and very excellent OTL (Oracle Template Library) from sourceforge (I think) and check out the demos and docs. It is C++, it is STL and it is bleeding fantastic.

All you need to do is #include <otl4.h> and that is it. You also get the full source code as everything is defined in the *.h file. Not only that, but it covers OCI7, OCI8, OCI9, DB2, ODBC etc as well - at no extra cost.

These Russian programmers are some of the best I've seen !!!

Cheers,
Norm.

-- 
Delete the obvious bit from my email address to reply by email.
Received on Thu Dec 04 2003 - 01:56:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US