Page 1 of 1

Fast Reports ODAC Component

Posted: Thu 27 Mar 2008 18:51
by wjm4
Is there an ODAC v6 Component to work with Fast Reports v4 in the c++ personality of RAD Studio 2007?

I have tried to install the Delphi versions by "Generate All C++ Files" Option on the .dpk. This installs the component onto the pallet. However, when I place that component on a form and try to run the application I get the following errors:
[C++ Error] frxDACComponents.hpp(59): E2311 Non-virtual function '_fastcall TfrxDACComponents::ResourceName(TMetaClass *)' declared pure
[C++ Error] frxDACComponents.hpp(60): E2311 Non-virtual function '_fastcall TfrxDACComponents::GetDatabaseClass(TMetaClass *)' declared pure
[C++ Error] frxDACComponents.hpp(61): E2311 Non-virtual function '_fastcall TfrxDACComponents::GetTableClass(TMetaClass *)' declared pure
[C++ Error] frxDACComponents.hpp(62): E2311 Non-virtual function '_fastcall TfrxDACComponents::GetQueryClass(TMetaClass *)' declared pure

I just need to get these components to work in C++ so I can use Fast Reports With ODAC in Rad Studio 2007 C++ Personality.

Thanks for the help in advance

Posted: Fri 28 Mar 2008 11:36
by Plash
There is a bug in *.HPP files generation in Delphi 2007.

You should open frxDACComponents.hpp file and replace 'static' with 'virtual' for member functions of TfrxDACComponents class.

Note: you can use MakeCBuilder.bat file from FR4\Delphi11 folder to compile packages with generating all C++ files. But you should edit paths in this file before running.

Posted: Mon 31 Mar 2008 20:13
by wjm4
I am now getting an error when I try to compile and install the last package (dclfrxODAC11.dpk). I have put in the search path "C:\Program Files\FastReports\FastReport 4\LibD11" And turn on to compile all C++ headers. I get the error: "[DCC Error] E1026 File not found: 'dclfrxODAC10.res'"
1)Do you have any clue as to why I would be getting this? I have searched for the file on my computer and can not find it.

2)Why would it be looking for a file for version 10 when I am trying to compile version 11?

Any help would be greatly appreciated.

Posted: Tue 01 Apr 2008 07:06
by Plash
Try to reinstall ODAC to remove changes that you have made in ODAC packages for Fast Report, and then compile packages using MakeCBuilder.bat (See ReadMe.txt file in FR4 folder for details about using MakeCBuilder.bat.). I have checked that the packages can be compiled successfully using the .bat file.