Just use a byte pointer (It may already be defined - depends on which
version of Delphi you are using).

eg 
Type
PByte = ^Byte;


-----Original Message-----
From: Tony Sinclair [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 9:02 AM
To: Multiple recipients of list delphi
Subject: [DUG]: Ha Ha, C to Delphi time again!


Hi all,

got yesterdays problems sorted out but here's one for fun.  I have a pointer
to a structure made up of a number of bytes, of which the length is known.
In C, I can iterate from that pointer to length, casting each as a byte and
get a dump of what's in the structure something along the likes of

while(intCount--)
        {
        myByte = (BYTE *)ptr++;
        // Output the byte to a file
        }

Suggestions for quick and dirty Delphi conversion?

Thanks in advance

Tony Sinclair
Holliday Group Limited
Christchurch
New Zealand

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to