Page 1 of 1

Cannot change source code of Оdac

Posted: Wed 17 Aug 2005 12:56
by Serg
Hello, Crlab

We buy Odac with source code, but cannot make necessary changes.

When we change OraScript.pas and build dclodac60.dpk, error is occurred:
[Fatal Error] EdDataSet.pas(63): Unit OraToolsClient was compiled with a different version of OraScript.TOraScript

We try to comment follolwing string in Odac.Inc file
// {$DEFINE ORATOOLS} // include OraToolsClient unit and related code
- build is successful, components are installed.

Will Odac work properly without {$DEFINE ORATOOLS} compilation directive?

Best regards,
Serg

Posted: Wed 17 Aug 2005 13:20
by Paul
ODAC will work without OraTools. You cannot edit or build your SQL queries with OraTools application in design time.
dclodac60.dpk is design time package and its code is not included to your final application.
Really you can build your application from sources (not using dcu or bpl) and use standard .bpl files from ODAC Std or Net installation package in design time.

Cannot change odac source

Posted: Wed 17 Aug 2005 14:06
by Serg
Thanks to your answer.

We usally don`t make changes to outside developers code, but in version 5 TOraScript.AfterExecute propertiies is removed (it is used in our code).
We used Odac 4.1 before.

Why did you do so & how can we avoid the problem without component's rewriting?

Best regards,
Serg

Posted: Thu 18 Aug 2005 08:42
by Paul
This event was deleted, possibly because TOraScript.BeforeExecute have the same functionality.