[DUG] Delphi 7 to Delphi 2009
John Bird
johnkbird at paradise.net.nz
Fri Feb 20 10:42:49 NZDT 2009
So what sorts of things were no problem, and what sorts of things were a
problem?
If I think of what sorts of things are in my code, there is quite a lot to
do with getting the character code of string[i], lots of use of
length(string), relying on alphabetic sorting of stringlists, calling
ansipos to find the position of a substring within a string, code such as
if string[i] > #32. and crlf:=#13#10. From what I have read most of
this stuff should be fine.
Please tell us the sorts of danger areas to look out for!
>From my days in another language whcih was portable across Windows and Unix
I got used to isolating anything to do with OS variances - for instance
defining CRLF as a constant ( #13#10 in Windows and #10) in Unix etc. I am
still trying to keep that in the somewhat remote chance that a linux/OSX
version of Delphi might magically appear some day.
Its a good idea to have an idea of which type of code are portable across
ANSI and UNICODE strings as well...
John
I have converted 2 programs over. If you have updated all your 3rd party
components, and you don't do anything funny with strings then it is quite
straight forward. If you do anything strange with strings, it can be a pain
in the arse.
One program took about 2 hours to convert, the other took about 20.
Sean
More information about the Delphi
mailing list