Contents 

SlavaSoft FastCRC Library Online Help

Prev Page Next Page
FastCRC Library Type Library

FCRC32_CalculateFile

int FCRC32_CalculateFile( [ out ]long* pCRC, [ in , string ] unsigned char* pFileName );

Return value

Zero if calculation is successful, otherwise nonzero.

Parameters

 pCRC

    [out] A variable that will receive the checksum.

pFileName

    [in] A null-terminated string specifying the name of the file for which to calculate the checksum. 

Remarks

Calculates the checksum for the file specified by pFileName. The checksum is retrieved in the variable specified by pCRC.

VB Example

Private Sub MyButton_Click()   
   Dim checksum As Long

   'Calculate the checksum
   If FCRC32_CalculateFile(checksum, "C:\Test.txt") = 0 Then

      'Show the hexadecimal representation of the checksum
      MsgBox FCRC_LongToHex32(checksum, True)

   End If
End Sub

 

 

Type Library Overview   |   Type Library Functions   |   Useful Links   |   HashCalc

 

See Also    FCRC32_Calculate, FCRC32_CalculateStr, FCRC_LongToHex32


 

 

Send Feedback to SlavaSoft Inc. Tell a friend about FastCRC Library