connectivity in c++ and oracle [message #93502] |
Fri, 22 March 2002 01:24 |
muntaha
Messages: 1 Registered: March 2002
|
Junior Member |
|
|
how can i make connectivity with c++ and oracle please suggest me any book from where i can get some help or any site which can give me proper information.
|
|
|
|
Re: connectivity in c++ and oracle [message #93533 is a reply to message #93502] |
Thu, 09 May 2002 12:13 |
Yeon
Messages: 6 Registered: April 2002
|
Junior Member |
|
|
Use Pro*C/C++ pre-compiler.
This compiler makes .c or .cpp file.
Below is example of 'connect' statement in .pc file.
username = uName;
password = pWord;
EXEC SQL WHENEVER SQLERROR goto err;
EXEC SQL CONNECT :username IDENTIFIED BY :password;
return true;
//User does not exist
err:
EXEC SQL WHENEVER SQLERROR CONTINUE;
return false;
|
|
|
|