On 12 Jan 97 Sven Cipido said to ALL...
SC> I had around 8 years ago wrote a program for a frien of my in C++
SC> (DOS-version). De database files where made as binairy files.
SC> Now I wan't to upgrade this program to Windows using Delphi.
SC> Is there a way to read these Binairy files in Delphi and convert them
One way to do it would be to reproduce that 'C' data structure as a Pascal
record type, then read the old file in, a record at a time, using blockread.
Then for each record, move the data from the fields of this pascal record to
the fields of the new .DBF structure, and write the data back out to your
new .DBF file.
If you are new to Delphi/Pascal and that sounds incomprehensible, contact me
via fido netmail or as bsmith@king.igs.net and we can discuss it further
off-line.
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)
|