Delphi warning - W1002 Symbol 'FileSetDate' is specific to a platform

后端 未结 3 683
囚心锁ツ
囚心锁ツ 2021-02-18 22:58

When I compile my application under Delphi 2006 I get the following warning [Pascal Warning]- W1002 Symbol \'FileSetDate\' is specific to a platform

What must I do to s

3条回答
  •  无人及你
    2021-02-18 23:36

    Although the answer of DR solves the warning, it is not the correct solution.

    You should use the platform independent version of FileSetDate:

    function FileSetDate(const FileName: string; Age: Integer): Integer; overload;
    

    Also in SysUtils.

提交回复
热议问题