scoping in Pro C

From: <xmannet46_at_my-deja.com>
Date: Mon, 04 Dec 2000 15:17:19 GMT
Message-ID: <90gchn$1ar$1_at_nnrp1.deja.com>


[Quoted] Hi all,

Been working with proc for about 6 months now and ran into a problem.

I basically need two login's to oracle within the same executable. The trouble is that sqlca is global and really does not allow this. Is there anyway to overcome this?

Do I have to hack the generated code?

Here is another question.....

I figured it would be best to create an a "oracleInterface" base class that would define the basic functions, logging in, logging out, reconnect, etc.... and then I could define a class that inherited from oracleInterface, and defined the application specific queries. When I do this the app compiles, but hangs when I log in.

Anyone try doing something like this with any success?

Please email with questions at:

pete_at_otterspace.yada.com

remove the yada.

Pete

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Dec 04 2000 - 16:17:19 CET

Original text of this message