CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    1

    fetching float type data from oracle in a VC++ program using OCI calls



    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

  2. #2
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043

    Re: fetching float type data from oracle in a VC++ program using OCI calls

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured