[DUG] Strings Question
Jeremy Coulter
jscoulter at gmail.com
Wed Nov 16 10:00:13 NZDT 2016
HI all.
I have a Delphi 2007 application that I NEED to upgrade to Delphi XE 8 or
greater.
The problem is, I am having trouble converting the code due to the fact
that Embarcadero changed how "String" etc. is used when they added the
support for Unicode.
I have had a couple of cracks at the conversion and I am "close" on one
project but I am starting again because I want to make sure I am using the
right variable types and not guessing.
There is a bit of MD5 conversion going on and the different variable types
of course generated diff MD5 codes for the same string being converted and
it is a bit confusing :-)
The main variable types are:
String
Byte
Integer
LongInt
Pointer
Array of Char
PChar
Char
My understanding is the variables should now be :-
String = AnsiString?
Byte = Still Byte?
Integer = Still Integer
LongInt =Still LongInt
Pointer = Still Pointer
Array of Char = PAnsiCHAR ?
PChar = PAnsiChar?
Char = AnsiChar?
Am I correct with the above that I have highlighted in "Red" ??
Thanks, Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20161116/f92c5aab/attachment.html
More information about the Delphi
mailing list