[yunqa.de] Re: HTMLParser install error in Delphi 2009

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Tue, 20 Jan 2009 11:50:39 +0100

Jeng-jie Shen wrote:

>I tried to install HTMLParser 5.0.0 in Delphi 2009.
>When executing 'compile', the message show some error:
>[DCC Error] DIUtils.pas(1499): E2072 Number of elements (256) differs
>from declaration (63737)
>[DCC Error] DIUtils.pas(1517): E2072 Number of elements (256) differs
>from declaration (63737)
>[DCC Error] DIUtils.pas(1535): E2072 Number of elements (256) differs
>from declaration (63737)
>[DCC Fatal Error] DIHtmlParserReg.pas(31): F2063 Could not compile
>used unit 'DIUtils.pas'
>
>they are about the following const declaration:
>ANSI_LOWER_CHAR_TABLE: array[#0..#255] of AnsiChar
>ANSI_UPPER_CHAR_TABLE: array[#0..#255] of AnsiChar
>ANSI_REVERSE_CHAR_TABLE: array[#0..#255] of AnsiChar
>
>Does anyone who knows how to install HTMLParser in Delphi 2009 successfully?
>Please help and Thanks!

DIUtils.pas compiles well with Delphi 2009 as well as with previous versions. 
Among the many users of DIUtils.pas (it is included in other packages like 
DIRegEx and DIZipWriter), only one single user reported E2072 with Delphi 2009, 
even though he quoted a different number of elements in the error message.

I am not able to reproduce this problem, and it does not show for the 99.99% of 
the users.

Concluding from the different number of elements in the two error messages, 
this could well be a Delphi 2009 compiler problem. Upgrading to the latest 
version might fix it.

Alternatively, could you please try to change the declaration into:

  ANSI_LOWER_CHAR_TABLE: array[AnsiChar(#0)..AnsiChar(#255)] of AnsiChar

and report back if it makes any difference?

Ralf 

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: