Re: [Pro*C/C++] No problem with C; PCC-S-02322 error message with C++
Date: Thu, 07 Oct 1999 14:07:56 GMT
Message-ID: <7ti9fj$n5f$1_at_nnrp1.deja.com>
In article <7ti017$gie$1_at_nnrp1.deja.com>,
Alex Vinokur <alexander.vinokur_at_telrad.co.il> wrote:
> Hi,
>
> Pro*C/C++ has no problem with my program as C-program,
> but it does have a problem with the same program as C++-program.
>
> What is wrong?
Pro*C/C++ requires DECLARE SECTION for host-variable in C++-programs. P.S. Why doesn't Pro*C/C++ require that in C-programs?
>
> Thanks in advance,
> Alex
>
> //#########################################################
> //------------------- Pro*C/C++ code : BEGIN --------------
>
> [--- omitted ---]
>
EXEC SQL BEGIN DECLARE SECTION;
> char* username = "aaa";
> char* password = "bbb";
EXEC SQL END DECLARE SECTION;
>
> [--- omitted ---]
>
> EXEC SQL CONNECT :username IDENTIFIED BY :password; // Line#157
>
> [--- omitted ---]
>
> //------------------- Pro*C/C++ code : END ----------------
>
[snip]
Alex
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Oct 07 1999 - 16:07:56 CEST