[patch_done] Patch for Delphi XE compatibility
Moderators: gto, cipto_kh, EgonHugeist, mdaems
[patch_done] Patch for Delphi XE compatibility
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.
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.
-
- Fresh Boarder
- Posts: 9
- Joined: 23.02.2010, 07:19
-
- Fresh Boarder
- Posts: 9
- Joined: 23.02.2010, 07:19
-
- Fresh Boarder
- Posts: 9
- Joined: 23.02.2010, 07:19
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)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'
-
- Fresh Boarder
- Posts: 24
- Joined: 06.11.2011, 16:46
- Location: Siracusa (Siclily)
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}
// 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}
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}
// 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}