Page 1 of 1

Trial demo fails to compile in Delphi XE3

Posted: Mon 24 Sep 2012 01:14
by DuckyDuck
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;

Re: Trial demo fails to compile in Delphi XE3

Posted: Mon 24 Sep 2012 09:41
by AlexP
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).

Re: Trial demo fails to compile in Delphi XE3

Posted: Mon 24 Sep 2012 14:49
by DuckyDuck
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