The binaries were created with Sun/Unix... and I now know that the vars
are all 4 bytes, but a mix of float and int. So which variables do I
need in Delphi to read them/
Thanks,
Nick
________________________________
From: delphi-en
yahoogroups.com [mailto:delphi-en
yahoogroups.com] On
Behalf Of Rory Daulton
Sent: Friday, July 14, 2006 3:50 PM
To: delphi-en
yahoogroups.com
Subject: Re: [delphi-en] mapping C varialbes to Delphi
Nick,
> Does anyone know what variables in C map to in Delphi. I have an int
> and float variable in a binary file in C and would like to read the
> binary file in Delphi, but I don't know how to map the variables.
We need a little more information, because some of the C types depend on
the
CPU. For example, in DOS and Windows 3.x, int was a 2-byte integer, like
Delphi's Smallint. In Windows 95 and up, int is a 4-byte integer, like
Delphi's Longint. IOW, C's int is like Delphi's Integer (usually).
Can you give more info on the environment of the C program?
Rory Daulton
rorydaulton
email.com <mailto:rorydaulton%40email.com>
----------------------------------------------------------
[This e-mail scanned for viruses and spam by Nmax - "Your MAXimum
Connection!"]
[Non-text portions of this message have been removed]