Trial demo fails to compile in Delphi XE3

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DuckyDuck
Posts: 16
Joined: Mon 06 Apr 2009 07:58

Trial demo fails to compile in Delphi XE3

Post by DuckyDuck » Mon 24 Sep 2012 01:14

I am having a problem with the UniDac trial.
Is this the best place to report the error or should I contact support via email ?

Problem
============
The demo application (UniDacDemo.dproj) fails to compile.
One line has an error

Environment
============
UniDac for Windows trial : UniDAC 4.5 for RAD Studio XE3
Delphi XE3

Error
=============
[dcc32 Error] CategoryFrame.pas(91): E2009 Incompatible types: 'Parameter lists differ'

Code
=============
This is the code that has the error.
The error line is marked with a comment

constructor TCategoryFrame.Create(AOwner: TComponent);
begin
inherited;
{$IFNDEF WEB}
FDemosDescription := TListBox.Create(self);
{$IFDEF CLR}
FDemosDescription.Font.Name := 'courier new';
FDemosDescription.Font.Size := 11;
{$ENDIF}
FDemosDescription.OnDblClick := DemosDescriptionDblClick;
FDemosDescription.OnMouseMove := DemoDescriptionMouseMove;
{$ELSE}
FDemosDescription := TWebBrowser.Create(self);
FDemosDescription.Navigate('about:blank'); // to create document object
FDemosDescription.OnBeforeNavigate2 := DemosDescriptionBeforeNavigate2; //*** THIS LINE ERRORS
{$ENDIF}
InsertControl(FDemosDescription);
FDemosDescription.Align := alClient;
end;

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Trial demo fails to compile in Delphi XE3

Post by AlexP » Mon 24 Sep 2012 09:41

Hello,

Thank you for the information, we know about this problem, and we are going to fix it in the next UniDAC build. For the time being, to solve the problem, you should replace DEFINE {$IFDEF VER230} with {$IFDEF VER240} in the method declaration and realization in the DemosDescriptionBeforeNavigate2 method (the CategoryFrame.pas module).

DuckyDuck
Posts: 16
Joined: Mon 06 Apr 2009 07:58

Re: Trial demo fails to compile in Delphi XE3

Post by DuckyDuck » Mon 24 Sep 2012 14:49

Thanks Alex, that worked

I also had to replace the VER230 with VER240 in the procedure spec in the class header

Thanks for the fast reply, Im up and running

Post Reply