Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

ElMD5 and use of InputType = SourceFile

In the methode TCrMD5.MD5_Hash_File there are ifdef to (deprecated/removed?) compiler defines "DELPHI" and "BP7"
I remove this and changed

{$IFDEF DELPHI}
  AssignFile(InputFile, FInputFilePath);
{$ENDIF}
{$IFDEF BP7}
  Assign(InputFile, FInputFilePath);
{$ENDIF}

and

{$IFDEF DELPHI}
  CloseFile(InputFile);
{$ENDIF}
{$IFDEF BP7}
  Close(InputFile);
{$ENDIF}


to

  AssignFile(InputFile, FInputFilePath);

and

  CloseFile(InputFile);


I think the defines "DELPHI" and "BP7" aren't used any more

Comments

Sign In or Register to comment.