Update from Delphi 7 to Delphi 2009

I have a Delphi 7 project in which there are some types of records containing strings loaded and stored in files.
After recompiling with Delphi 2009, when the program loads the records from the file, the lines are mixed up because the compiler expects Unicode while the file has Ansi lines.
The type is similar to this: After replacing "string" with "ansistring", the project does not even compile the statement "E2029"; expected, but '[' found ". Suggestions?
type
Tpoint = record
name: string[255];
x, y: integer;
end;

+3
source share
1 answer

shortstring ( [255]) - , : AnsiChar . ansistring , .

? ? , .

+4

Source: https://habr.com/ru/post/1781279/


All Articles