Cannot change source code of Оdac

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Serg

Cannot change source code of Оdac

Post by Serg » Wed 17 Aug 2005 12:56

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

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Wed 17 Aug 2005 13:20

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.

Serg

Cannot change odac source

Post by Serg » Wed 17 Aug 2005 14:06

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

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Thu 18 Aug 2005 08:42

This event was deleted, possibly because TOraScript.BeforeExecute have the same functionality.

Post Reply