"Pete C." <x@x.x> wrote in message news:<2N*****************@newsread2.news.pas.earth link.net>...
pembed2003 wrote: Hi all,
I have to write a C++ application to access some data from an Oracle
database. I will be using gcc running on Solaris. Can you tell me how
to do this if it's possible? Some sample code or how-to will be
useful.
Thanks!
Sorry, C++ does not provide any facilities to do so.
- Pete
C++ does not have the capability to do any database activity but
Oracle gives you the tools for this very purpose. They have a
precompiler that can be downloaded from the oracle site for
development. This tools aka Pro*C/C++ is basically a pre-compiler
which converts your Pro*C/C++ code into sqllib calls and the output is
corresponding C/C++ file. This file can then be compiled with the
appropriate compiler and converted to the final binary. For more
information you can refer to "Pro*C/C++ programmers guide" at oracle
documentation website.
Hope this hepls.