Hi Tony,
Assuming you have a pointer to this structure in Delphi, can't you just
cast that to a pchar?
Regards,
Bevan
Tony Sinclair wrote:
>
> 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"
--
Bevan Edwards mailto:[EMAIL PROTECTED]
Achieve Software Limited http://www.achieve.co.nz
Phone: (64-9) 444-4210 ICQ: 732011
Fax: (64-9) 444-4201
Mobile: (64-21) 979-603
---------------------------------------------------------------------------
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"