Re: PRO C++ what with scope operator !!!!!

From: Ed prochak <ed.prochak_at_magicinterface.com>
Date: 21 Jul 2004 10:23:36 -0700
Message-ID: <4b5394b2.0407210923.5eaf95b6_at_posting.google.com>


"Robert Bralic" <robert.bralic_at_si.htnet.hr> wrote in message news:<cdj4q0$in7$1_at_ls219.htnet.hr>...
> How can exist pro C++ if ":" is reserved for scope operator,
> how than can I make cursor or insert with SQL !!!!
>
>
> robert.bralic_at_si.htnet.hr

Take a deep breath. Calm yourself.

This works because the ":" used in embedded SQL is gone before the C++ compiler sees it. Pro*C is a PRECOMPILER. You pass the source file to Pro*C before you pass it to C++.

So in your C++ code, you use C++ syntax and characters, in your SQL code you use Embedded SQL syntax and characters. The two languages are separated by EXEC SQL statements. The precompiler converts the SQL to C variables and function calls. Then the combined code goes to the compiler.

We now return you to your regularly scheduled reading of the Oracle Manuals.

  Ed

BTW, this thread should be in comp.databases.oracle.misc the comp.databases.oracle group is obsolete. Received on Wed Jul 21 2004 - 19:23:36 CEST

Original text of this message