Programming C# C++ (7) Delphi (604) .NET (2) Database (72) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (243) Java (8) JavaScript (56) perl (40) php (12) VBScript (1) Visual Basic (1)
Exchange Links About this site Links to us
|
Problem with typed files
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
I am converting from Delphi 4 to Delphi 5. All my typed files are having errors during read. It is as if the defined record structure doesn't match the records in the files. When I rewrite the file and then write a new record to it, I don't have a problem. Was the structure of typed files changed in Delphi 5?
Answer:
Records are defaulted to aligned in Delphi 5. Add the 'packed' keyword to your type declarations.
Comments:
|