Subject IBO - D2009 Build help needed.
Author Adrian Wreyford
OK .. I'm trying to tackle a build for D2009

I cannot get the following code to compile in D2009:

const SoundExTable: array [char] of smallint = (
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 0..29
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 30..59
0,0,0,0,0, // 60..64
//A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ / ] ^ _ '
0,1,2,3,0,1,2,0,0,2,2,4,5,5,0,1,2,6,2,3,0,1,0,2,0,2,0,0,0,0,0,0,
//a b c d e f g h i j k l m n o p q r s t u v w x y z
0,1,2,3,0,1,2,0,0,2,2,4,5,5,0,1,2,6,2,3,0,1,0,2,0,2,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 123..149
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 150..179
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 180..209
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 210..239
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 );

Gives error: Number of elements 256 differs from declaration 65536. .. is this something to do with unicode? and Char representation in D2009?
Any help will be appreciated.

Adrian



[Non-text portions of this message have been removed]