UNIDAC
Re: UNIDAC
Hello,
To work with OracleUniProvider in C++ Builder, you must change the following code:
#pragma link "OracleUniProvider"
to
#pragma link "oraprovider140.lib"
The same is true for the rest of the providers.
To work with OracleUniProvider in C++ Builder, you must change the following code:
#pragma link "OracleUniProvider"
to
#pragma link "oraprovider140.lib"
The same is true for the rest of the providers.
Re: UNIDAC
thank you but always is
[ILINK32 Error] Fatal: Unable to open file 'ORAPROVIDER140.OBJ'
i change
see
#pragma package(smart_init)
#pragma link "DBAccess"
//#pragma link "OracleUniProvider"
#pragma link "oraprovider140.lib"
#pragma link "Uni"
#pragma link "UniProvider"
#pragma resource "*.dfm"
please help
thank you very much
B.R Rado
[ILINK32 Error] Fatal: Unable to open file 'ORAPROVIDER140.OBJ'
i change
see
#pragma package(smart_init)
#pragma link "DBAccess"
//#pragma link "OracleUniProvider"
#pragma link "oraprovider140.lib"
#pragma link "Uni"
#pragma link "UniProvider"
#pragma resource "*.dfm"
please help
thank you very much
B.R Rado
Re: UNIDAC
i have in c++ builder 2010 uncheck build with runtime packages
can make error ?
can make error ?
Re: UNIDAC
note: I have win7 64bit HOME premium 4GB ram and intel i3
Thank you
Thank you
Re: UNIDAC
Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
Re: UNIDAC
AlexP wrote:Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
Thank you very much so i must check "build with runtime packages" ?
and then i must replace #pragma link "OracleUniProvider"
to
#pragma link "oraprovider140.lib" or no replace ?
thanks
Re: UNIDAC
AlexP wrote:Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
can i ?
make.bat CBuilder 14
Re: UNIDAC
AlexP wrote:Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
please can you generate obj file for bc2010
very very thanks
note: when i check "build with runtime packages" i must with exe file *.bpl files copy to exe file
Re: UNIDAC
Hello,
OBJ files will be added for all IDEs, where this problem occurs.
If you check "build with runtime packages" you will also need to deploy the following BPL files with your application:
OBJ files will be added for all IDEs, where this problem occurs.
If you check "build with runtime packages" you will also need to deploy the following BPL files with your application:
Code: Select all
dacXX.bpl always
dacXX.bpl always
unidacXX.bpl always
dacvclXX.bpl if your application uses the UniDacVcl unit
unidacvclXX.bpl if your application uses the UniDacVcl unit
crcontrolsXX.bpl if your application uses the CRDBGrid component
Re: UNIDAC
AlexP wrote:Hello,
OBJ files will be added for all IDEs, where this problem occurs.
If you check "build with runtime packages" you will also need to deploy the following BPL files with your application:
Code: Select all
dacXX.bpl always dacXX.bpl always unidacXX.bpl always dacvclXX.bpl if your application uses the UniDacVcl unit unidacvclXX.bpl if your application uses the UniDacVcl unit crcontrolsXX.bpl if your application uses the CRDBGrid component
When I use BC XE3 UPDATE2 then is all OK
i not must replace
#pragma link "OracleUniProvider" to #pragma link "oraprovider140.lib"
and linker not error /[ILINK32 Error] Fatal: Unable to open file 'ORAPROVIDER140.OBJ'/
and note I use not check "build with runtime packages"
and all is OK exe file is 6MB and i not need bpl files so is very good
why BC2010 not works but bcxe3 works good ????
thanks Rado
Re: UNIDAC
hello,
These changes have been applied since RAD Studio XE2. In lower versions, there will be the same problems.
These changes have been applied since RAD Studio XE2. In lower versions, there will be the same problems.
Re: UNIDAC
AlexP wrote:hello,
These changes have been applied since RAD Studio XE2. In lower versions, there will be the same problems.
Thanks very much
i have still two question
1. when i not connect with oci then i connect direct is ok so below?
////////////////Connect OCI///////////////////////////////
UniConnection1->Server="L2SERVER";
UniConnection1->SpecificOptions->Values["Direct"]="false";
//////////////////////////////////////////////////////////
UniConnection1->Connect();
Oracle_Query = new TUniQuery(NULL);
Oracle_Query->Connection=UniConnection1;
TimerProcess->Enabled=true;
} catch (...) {
try {
////////////////when exception try Connect DIRECT///////////////////////////////
UniConnection1->Server="172.17.150.50:1521:L2SERVER";
UniConnection1->SpecificOptions->Values["Direct"]="true";
//////////////////////////////////////////////////////////
UniConnection1->Connect();
Oracle_Query = new TUniQuery(NULL);
Oracle_Query->Connection=UniConnection1;
TimerProcess->Enabled=true;
} catch (...) {//when not connect OCI and too no connect direct so error message
Application->MessageBox(L"Error no OCI no Direct connection",L"Error",MB_OK + MB_ICONERROR);
}
}
is so good ?
2. which different OCI and Direct connection ???
Thank you very much
Rado
Re: UNIDAC
Hello,
1) Yes, you can use the provided code, however, it would be more correct to move creation of TuniQuery out from the Try..Catch block.
2) In the OCI mode, there must be an Oracle client installed and configured on a PC; the Direct mode requires no additional software to be installed: connection to a database works directly via the TCP/IP protocol
1) Yes, you can use the provided code, however, it would be more correct to move creation of TuniQuery out from the Try..Catch block.
2) In the OCI mode, there must be an Oracle client installed and configured on a PC; the Direct mode requires no additional software to be installed: connection to a database works directly via the TCP/IP protocol