Home > Back-end >  Delphi7 under Windows 7 using the deletefile doubts
Delphi7 under Windows 7 using the deletefile doubts

Time:09-19

Use under win64 a deletefile function, how calls by default is Windows. The deletefile, quoted the SysUtils in front of me, the result of the default display when using delerefile is invoked under Windows, rather than the SysUtils below, what is this? thank you

CodePudding user response:

In SysUtils DeleteFile also is called Windows, effect is the same, just made a transformation parameters,

CodePudding user response:

This is the result of Delphi closed the Windows API, use SysUtils. DeleteFile, is the call of the Windows API, DeleteFile,

CodePudding user response:

refer to the original poster Rubi response:
using the deletefile function under win64 bit, is how the default call Windows. The deletefile, I refer to the SysUtils front, the result of the default display when using delerefile is invoked under Windows, rather than the SysUtils below, what is this? Thank you

If two unit have the same name constants, variables, procedures, functions, the compiler selects only the final list of the unit, the problem solution is to put the Windows unit in front of the SysUtils, thus the SysUtils function called the, also can add a qualifier, the unit name,

CodePudding user response:

SysUtils. DeleteFile (...

CodePudding user response:

The function DeleteFile (const FileName: string) : Boolean;
The begin
{$IFDEF MSWINDOWS}
Result:=Windows. DeleteFile (PChar (FileName));
{$ENDIF}
,,,
end;
The DeleteFile sysutils calls is also in the Windows
  • Related