Board index » delphi » How do I read data from a formatted file into my objects
sagi...@daimi.aau.dk
![]() Delphi Developer |
Sat, 08 May 1999 03:00:00 GMT
How do I read data from a formatted file into my objectsI have submitted this for a friend. ============================================================ My problem is I want to read data from a formatted file into my I've solved the problem by simple typecasting. For that purpose I've procedure TObjectStream.ReadData(var Buffer: Pointer; Count: Word); The method is called like this: The procedure, which is rather dirty, is like this: For some reason using ReadData causes an access violation exception, Can anyone please tell me what is wrong with the ReadData method? I have problems reading news, so please mail me directly. Troels Jakobsen ========================================================= |