|
FastCRC Library |
Type Library |
|
FCRC16C_CalculateFile
int FCRC16C_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 FCRC16C_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
FCRC16C_Calculate,
FCRC16C_CalculateStr,
FCRC_LongToHex16
|