Subject | Re: [IBO] IBO - D2009 Build help needed. |
---|---|
Author | Adrian Wreyford |
Post date | 2008-10-16T20:18:22Z |
In D2009:
Char now maps to WideChar (2 bytes, not 1 byte) and is a UTF-16 character.
I will need some pointers here if anybody can help.
Thanks
Adrian
Char now maps to WideChar (2 bytes, not 1 byte) and is a UTF-16 character.
I will need some pointers here if anybody can help.
Thanks
Adrian
----- Original Message -----
From: Adrian Wreyford
To: IBObjects@yahoogroups.com
Sent: Thursday, October 16, 2008 9:53 PM
Subject: [IBO] IBO - D2009 Build help needed.
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]
[Non-text portions of this message have been removed]