Delphi 2009

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

Moderators: XnTriq, xnview

Post Reply
User avatar
xnview
Author of XnView
Posts: 33425
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Delphi 2009

Post by xnview » Tue Nov 18, 2008 12:54 pm

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??
Pierre.

gispos
Posts: 8
Joined: Sat Mar 01, 2008 10:57 pm
Location: stuttgart

Post by gispos » Wed Dec 10, 2008 6:13 pm

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

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

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

Post Reply