Is Delphi 7 an Easy Way to Change in Delphi 2009? Or is there any way to use the Delphi 7 unit in a Delphi 2009 project?
I have a unit in Delphi 7 but when I try to use it in my Delphi 200 9 project, all behaviors get worse.
There are a lot of differences:
hangul = 'ㄱㄲ ㄴㄷ ㄸㄹ ㅆㅇ ㅈㅉ ㅊ ㅋㅌㅍㅎ' + 'ㅏ ㅐ ㅓ ㅔ ㅕ ㅖ ㅗㅛ ㅜㅠ ㅡ ㅣ'; ShowMessage (copy (Hangul, 1 + (i) * 2, 2)); Delphi 7 shows the characters at one time, but two in Delphi 200 9 at a time. So I need to change it:
ShowMessage (copy (Hangul, 1 + I, 1)); But it was the easiest, it gets more confused..and the algorithm is not mine, so I can not fully understand the program.
Any help would be appreciated.
Edit: And if anyone is interested in seeing the code here, then it is the unit hinting; is the part. This key (in English) translates and outputs Korean characters. No more, I do not understand Korean.
For example, you can do this for your encoding .pas file. If it is anything but UTF-8, then convert it to UTF-8 using Notepad ++. It should preserve the characters and make them readable for D 2009 Oh, and make sure that the BOM (byte order mark) for the UOTF-8 lead is included.
Not sure if the file will still be useful in D7, though ... (Do not know when UTF-8 support was added in the IDE.)
In the example Hangul String and your link in the HanInput unit have two bytes per character, it tells me that their purpose is UTF-16 encoded.
Multibyte has been confirmed by Tweeder Calls, even if they are used on logic instead of constants. If you are actually being encoded in UTF-16 works, you can get rid of that call But you still need to find a way to deal with constants.
Dealt with constants - that Han sees a lot in the input unit - to copy the string into a new ANC encoded Notepad ++ file, changing your encoding to UTF-8 and then typing the strings on your unit Can copy. You want to make sure that you copy all the stars in a new Notepad ++ file first, then convert them and then copy them again, because IDE Editor will probably ask you if you want to format UTF- Want to change and can be inverted by constant.
Comments
Post a Comment