Delphi defaults to a `register` calling convention that the C compilers usually 
don't support. You need to use
    
    
    function OpenDataFile(FileName: PChar): int32; stdcall;
    procedure CloseDataFile(Handle: int32); stdcall;
    
    
    Run

Reply via email to