Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: URGENT : OCI 8.0 Related

Re: URGENT : OCI 8.0 Related

From: Parvinder Singh <parora_at_questone.com>
Date: Wed, 08 Dec 1999 06:49:10 GMT
Message-ID: <384DFF9B.EBD77C11@questone.com>


The problem got solved ...let me tell you what was the problem FYI

I was included OCI.H header in my file which include some more files depending upon a condition which was something like this

If __STDC__
#include <ociapr.h>
#include <ociap.h>
else
#include <ocikpr.h>
#include <ocikp.h>
endif
now __STDC__ was not defined in my application there fore the else part's files use to get included which contained the prototype of all the OCI functions and those prototypes dint had any parameters ...for e.g OCIInitalize(); ..and so on

now i defined __STDC__ in my app. and then part files (ociap.h and ociapr.h) got included in my app. which contained the proper OCI function prototypes

and this how it worked

Regards
Parvinder

Parvinder Singh wrote:

> Hi all
>
> i have got a doubt related to OCI calls. I have just started with OCI 8.0
> 1>now i am right now including OCI.h file in my application (which has been created with the help of MFC wizard)
> 2>and in the project settings i have done the settings for ora803.lib file
> 3>ora803.dll has been put into the debug directory of my application
>
> and just one OCI call named as OCIInitialize has been called but it gives me a error that it cant accept 5 parameters and for any kind of OCI function it gives the same type of the error ..
>
> this is how the call i have given
>
> OCIInitialize((ub4) OCI_THREADED | OCI_OBJECT, (dvoid *)0, (dvoid * (*)()) 0, (dvoid * (*)()) 0, (void (*)()) 0 );
>
> If you can tell me anything as to why is the errror coming ..i will be very grateful to you
> Hope my problem is clear ..
>
> Regards and Thanks in advance
> Parvinder
> Also reply to parora_at_questone.com
Received on Wed Dec 08 1999 - 00:49:10 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US