Board index » delphi » C FILE type and Delphi file type

C FILE type and Delphi file type

Can I pass a pointer to a pascal file to a C DLL that takes a pointer to
type FILE?

Sean

 

Re:C FILE type and Delphi file type


On Fri, 29 Oct 1999 13:54:05 -0400, Sean Walsh

Quote
<EUSS...@am1.ericsson.com> wrote:
>Can I pass a pointer to a pascal file to a C DLL that takes a pointer to
>type FILE?

No, but see the TFileRec type in SysUtils. You can get the file handle,
and pass that to C. The C DLL can use the handle to create a C FILE
structure. (That is, assuming you have control over the C DLL.)
--
Ray Lischner, http://www.tempest-sw.com/
author of Delphi in a Nutshell

Other Threads