Where is the VirtualTable ?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Lutz
Posts: 4
Joined: Thu 13 Oct 2005 12:41
Location: Germany

Where is the VirtualTable ?

Post by Lutz » Thu 13 Oct 2005 12:45

After Installing the new Build of ODAC (5.55.1.23) at BCB 6.0
We can not find the Component TVirtualTable in the Component Palette.

Where is it ?

Compiled Program fails too.

We use this component in a lot of applications.

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Fri 14 Oct 2005 09:10

There is a bug in the current ODAC build for CBuilders (5.55.1.23), which prevents VirtualTable component
from being installed. We have fixed it and this fix will be included in the next ODAC build.
As temporary solution for current build you can register it manually. To do this follow these steps:
1) Using any text editor create new file and save it as "VtReg.pas" in your OdacInstallDir\Lib folder
2) Fill it with the following code and save:

Code: Select all

unit VTReg;
interface
  procedure Register;
implementation
uses
  Classes, VirtualTable;
procedure Register;
begin
  RegisterComponents('Data Access', [TVirtualTable]);
end;
end.
3) Run CBuilder IDE
4) Run IDEMainMenu/Component/Install Component and choose "Into new package" tab
5) Fill "Unit file name" editor with path to VtReg.pas
6) Fill "Package file name editor" with: OdacInstallDir\Lib\VirtTable.bpk
7) Compile and install the package.
CBuilder 5 issues:
Under CBuilder 5, package compilation will fail because you need to add "Dac50.bpi" link to the package.
To do this open VirtTable.cpp file (press Ctrl+F12 and select it) and add

Code: Select all

USEPACKAGE("DAC50.bpi"); 
line under

Code: Select all

USEPACKAGE("vcl50.bpi");
Then build the package and install it. You can do this from "Project Manager" window using popup menu.

8) Now VirtualTable component is available from "Data Access" page of component palette.

Post Reply