Passing TOracleSession in VC to DLL in CBuilder?

rakgol_a

Member²
Hi,

How does one goes about creating TOracleSession in visual C++(executable)
and pass that session to a DLLs
writen in C++ Builder to be used
by TOracleDataSet controls for forms.

thanx
 
I think you need to create the TOracleSession instance inside a C++Builder DLL, and pass the instance or its ExternalSVC to other modules that make up this application.

------------------
Marco Kalter
Allround Automations
 
The problem is that we have to intergrate
DLL modules into a VC application which has
an ODBC logon...

Originally posted by mkalter:
I think you need to create the TOracleSession instance inside a C++Builder DLL, and pass the instance or its ExternalSVC to other modules that make up this application.

 
I am not really an ODBC expert, but I doubt that you can get hold of the SVC (Net8) or LDA (SQL*Net) of the ODBC connection.

If you can, you can assign it to the ExternalSVC or ExternalLDA of your TOracleSession and share the connection.

If you can't, you need to create a secondary session with the same username/password@database as the ODBC connection.

------------------
Marco Kalter
Allround Automations
 
Back
Top