Delphi 2009

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

User avatar
Author of XnView
Posts: 43098
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Delphi 2009

Post by xnview »

Delphi 2009 is now fully unicode, so there is a problem with PChar & GFL
I think that PAnsiChar must be used, but in previous Delphi version??
Posts: 8
Joined: Sat Mar 01, 2008 10:57 pm
Location: stuttgart

Post by gispos »

Hello, at the moment I don’t have Delphi 2009 installed,
but I think with a small update you can solve the Delphi 2009 problem.

Go to the first type declarations in the LibGfl.pas and added this two lines:

Char = AnsiChar;
PChar = PAnsiChar;

This is not tested! But works with all Versions of Delphi.

Code: Select all

  //GPo 2008; Workaround Delphi 2009
  Char = AnsiChar;
  PChar= PAnsiChar;

  GFL_INT8    = ShortInt;
  GFL_UINT8   = Byte;
  PGFL_UINT8  = ^GFL_UINT8; // IN!
Gruß gispos