FastCRC Library Type Library

FCRC16_CalculateFile

int FCRC16_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 FCRC16_CalculateFile(checksum, "C:\Test.txt") = 0 Then

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

   End If
End Sub

 

 

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

 

See Also    FCRC16_Calculate, FCRC16_CalculateStr, FCRC_LongToHex16


 

 

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