Error in declaration of Functions when using ocikpr.h. Can't Logon when using ociapr.h

From: Dave <dfbrownau_at_yahoo.com.au>
Date: 3 Sep 2002 14:05:50 -0700
Message-ID: <31893d47.0209031305.799e3c26_at_posting.google.com>


Hi

I have a problem with my OCI test application. I am trying to convert the demo file cdemo2.c into a cpp alternative to be added to my project instead of using ADO.

I have this problem however: With this
extern "C"
{
#include <oratypes.h>
#include <ocidfn.h>
#ifdef __STDC__
#include <ociapr.h>//#include <ocikpr.h>
#else
#include <ocikpr.h>
#endif
#include <ocidem.h>

}
I get these errors when Itry to compile: d:\projects\vc\oci\test2\cdemo6.h(77) : error C2065: 'oparse' : undeclared identifier
d:\projects\vc\oci\test2\cdemo6.h(82) : error C2065: 'obndrn' : undeclared identifier
as the ocikpr.h file has all of the in/out parameters commented out (Why?).

/*                                     */
So I try this
extern "C"
{
#include <oratypes.h>
#include <ocidfn.h>
#include <ociapr.h>
#include <ocidem.h>

}
I get an error when I try to connect at run time (ie it does compile but..) with the ORANLS8.DLL:
olog(&lda, (ub1 *)hda, username, -1, password, -1,(text *) 0, -1, (ub4)OCI_LM_DEF)

I should also mention that I have set the "Precompile Header" option under Projects->Options->c/C++ to "Not using Precompiled Headers".

Can someone please suggest something helpful????

Thanks
Dave

Windows 2000
Oracle 817
VC++ 6.0 Received on Tue Sep 03 2002 - 23:05:50 CEST

Original text of this message