Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Any Pro*C/C++ users out there?

Path: g2news2.google.com!postnews.google.com!v36g2000yqv.googlegroups.com!not-for-mail
From: Ramon F Herrera <ra...@conexus.net>
Newsgroups: comp.databases.oracle.server,comp.databases.oracle.misc
Subject: Re: Any Pro*C/C++ users out there?
Date: Mon, 7 Sep 2009 08:24:08 -0700 (PDT)
Organization: http://groups.google.com
Lines: 57
Message-ID: <0a44a662-9e84-4702-bd7a-bb0e7d1767aa@v36g2000yqv.googlegroups.com>
References: <a623f68a-3dd4-4a9c-9e7f-84b80abad2d2@o9g2000yqj.googlegroups.com> 
	<4AA38756.5090900@gmail.com> <48091499-640f-453f-82f0-6119025f5d2a@38g2000yqr.googlegroups.com> 
	<4AA51F74.90103@gmail.com> <61046f6a-7286-4183-9a65-bbefd436dfc1@q7g2000yqi.googlegroups.com>
NNTP-Posting-Host: 190.37.71.130
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1252337048 11601 127.0.0.1 (7 Sep 2009 15:24:08 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 7 Sep 2009 15:24:08 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v36g2000yqv.googlegroups.com; posting-host=190.37.71.130; 
	posting-account=X64iTAkAAADcZFDPVkvH-m-qXOfEepKk
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) 
	Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)

On Sep 7, 11:09=A0am, Ramon F Herrera <ra...@conexus.net> wrote:
> On Sep 7, 10:57=A0am, Maxim Demenko <mdeme...@gmail.com> wrote:
>
>
>
> > Ramon F Herrera wrote:
> > > I have a new question. I took a C program that precompiled, compiled,
> > > linked and executed perfectly.
>
> > > Now I am trying to convert it into a C++ program.
>
> > > My current problem is that the following four variables are not
> > > recognized by the C++ precompiler:
>
> > > varchar =A0 =A0 =A0 =A0 username[UNAME_LEN];
> > > varchar =A0 =A0 =A0 =A0 password[PWD_LEN];
>
> > > EXEC SQL CONNECT :username IDENTIFIED BY :password;
>
> > > int howMany;
> > > varchar table_name[SOME_SIZE];
>
> > > EXEC SQL SELECT COUNT(1) INTO :howMany FROM user_tables WHERE
> > > table_name =3D :table_name;
>
> > > It seems like the variables embedded into the EXEC SQL statements nee=
d
> > > a different syntax?
>
> > > TIA,
>
> > > -Ramon
>
> =A0> I'm not a c/c++ developer by any means
>
> By your answers, it seems to me like you are a more competent C++
> developer than myself. :-)
>
> You are absolutely right, that was indeed the problem.
>
> Now I have a new one, to be posted next.
>
> Thanks!
>
> -Ramon

I am glad to report that I am very close to building my first non-
trivial C++ program.

I began with a complex, operational C program.

The only issues left are conversions from "char *" to "unsigned char
*". My guess is that I should change all my strings to C++ string
type.

-Ramon