[patch_done] Patch for Delphi XE compatibility

Code patches written by our users to solve certain "problems" that were not solved, yet.

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
cariad
Junior Boarder
Junior Boarder
Posts: 36
Joined: 20.10.2005, 14:07

[patch_done] Patch for Delphi XE compatibility

Post by cariad »

Hello,

Here's a little patch (against trunk ver800) to support Delphi XE. The components aren't converted but the modest test suite we use in-house runs without problem.
You do not have the required permissions to view the files attached to this post.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

This one is harmless for Delphi versions before XE, so I did commit.
SVN Rev 812

Mark
Image
sir.wally.lewis
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 23.02.2010, 07:19

Post by sir.wally.lewis »

How do I get this version of ZeosLib?
sir.wally.lewis
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 23.02.2010, 07:19

Post by sir.wally.lewis »

After much stuffing around i found out that using subversion i can get this version at svn://zeos.firmos.at/zeos/branches/testing it also compiles under Delphi XE! We should be using Delphi15 for DelphiXE and not modifying Delphi14
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

sir.wally.lewis,

I fully agree. Now it's up to some XE user to provide de new packages.
The patch above is just making the changes to the real code and should be done anyway.

Mark
Image
sir.wally.lewis
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 23.02.2010, 07:19

Post by sir.wally.lewis »

Hi Mark,
We will be purchasing Delphi XE this week.
What can I do to get these changes into the main branch of zeoslib?
joanmvf
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 11.10.2010, 01:31

Post by joanmvf »

Im trying to compile on delphi XE but im getting 3 error like this one....

[DCC Error] ZSysUtils.pas(454): E2010 Incompatible types: 'PAnsiChar' and 'PWideChar'
Marius2
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: 06.12.2008, 13:07

Post by Marius2 »

joanmvf wrote:Im trying to compile on delphi XE but im getting 3 error like this one....

[DCC Error] ZSysUtils.pas(454): E2010 Incompatible types: 'PAnsiChar' and 'PWideChar'
Check the zeos.inc and look for "{$IFDEF VER220}". If its not there a lot of ifdefs go wrong during compilation. Copying the delphi 2010 210 and adjusting it a bit solves a lot of these compiler issues. i think you can also find some patches for it (not sure if its already in svn)
merovingio
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 06.11.2011, 16:46
Location: Siracusa (Siclily)

Post by merovingio »

I add at file Zeos.inc, is Rigth?.

// Compilation directives for Delphi XE2
{$IFDEF VER230}
{$DEFINE VER220BELOW}
{$DEFINE DELPHI14}
{$DEFINE DELPHI9_UP}
{$DEFINE DELPHI10_UP}
{$DEFINE DELPHI12_UP}
{$DEFINE DELPHI14_UP}
{$DEFINE DELPHI15_UP}
{$DEFINE BDS}
{$DEFINE BDS7}
{$DEFINE BDS4_UP}
{$DEFINE BDS5_UP}
{$DEFINE BDS7_UP}
{$ENDIF}
bernhard
Junior Boarder
Junior Boarder
Posts: 26
Joined: 22.10.2009, 21:49

Post by bernhard »

my inc file part


// Compilation directives for Delphi XE2
{$IFDEF VER230}
{$DEFINE VER200BELOW}
{$DEFINE DELPHI14}
{$DEFINE DELPHI9_UP}
{$DEFINE DELPHI10_UP}
{$DEFINE DELPHI12_UP}
{$DEFINE DELPHI14_UP}
{$DEFINE DELPHI15_UP}
{$DEFINE DELPHI16_UP}
{$DEFINE BDS}
{$DEFINE BDS7}
{$DEFINE BDS8} // EDS8 ?
{$DEFINE BDS4_UP}
{$DEFINE BDS5_UP}
{$DEFINE BDS7_UP}
{$DEFINE BDS8_UP}
{$ENDIF}
Post Reply