Click to See Complete Forum and Search --> : fetching float type data from oracle in a VC++ program using OCI calls


Durga Gumaste
March 30th, 1999, 05:19 AM
we have daclared the datatype as number(10,4).to fetch the value from the database to vc++ program we are using ORACLE

CALL INTERFACE(OCI) 'odefin'.

it defines the variable in which output is to be fetched.


odefin(Cda_Def *cursor, sword pos, ub1 *buf,

sword bufl, sword ftype, ,

[sb2 *indp], , ,

, [ub2 *rlen],

[ub2 *rcode]);


what should be the datatype of parameters 3,4 and 5?

from,

Durga Gumaste

MartinL
December 18th, 2000, 09:35 PM
Hi,

There are parameter types:

int (sword, eword, sb4, ub4)
short int (sb2, ub2)
char (ub1, sb1)
addresses of program variables (pointers)
memory pointers (dvoid)

Another thing:
paramters enclosed in brackets ([]) are optional.

Regards, Martin