CRC32Library
所属分类:Windows编程
开发工具:C++ Builder
文件大小:5KB
下载次数:25
上传日期:2006-03-22 20:10:07
上 传 者:
管理员
说明: CRC校验代码。
(CRC code.)
文件列表:
CRC32 Library (0, 2003-09-14)
CRC32 Library\CRC32.cpp (5077, 2002-01-20)
CRC32 Library\CRC32.h (589, 2002-02-01)
CRC32 Library\NAG Software Solutions.url (82, 2002-01-14)
=================================================
CRC32 Library for C++Builder(tm) - Release Notes
Copyright 2002 NAG Software Solutions
=================================================
CONTENTS
=================================================
1. INTRODUCTION
2. GETTING STARTED
3. SEE ALSO
4. CONTACTING NAG SOFTWARE SOLUTIONS
1. INTRODUCTION
===================================================
The CRC32 Library includes a module, CRC32.cpp,
that you can freely include in your applications to
start performing 32-bit cyclic redundancy checks in
no time. By obtaining the current CRC32 image of a
file and comparing it with the image obtained from
the file when it was in a known untouched state,
you can check whether it has been tampered with.
File compression utilities such as WinZip(tm) use this
method to verify the integrity of stored files, i.e.,
to ensure that they are not corrupt.
2. GETTING STARTED
===================================================
To get started with the CRC32 Library, begin
by adding the included CRC32.cpp module to
the C++Builder project in which you intend to
use the library. To do this, open the Project
menu and click "Add to Project". Look up and
select the CRC32.cpp file, then click OK. By
now, the file should have been added to your
project and the appropriate path should have
been appended to your project's include and
library search paths.
Next, you must link the included CRC32.h file
to the unit from which you intend to call the
functions supplied by the CRC32 Library. To do
this, select the "Include Unit Hdr" menu item
from the File menu in the C++Builder IDE. You
should now be ready to go. Remember that if
you plan on accessing the library's functions
from other units later on, you will have to
link CRC32.h to those units as well.
The CRC32 Library declares two functions.
unsigned long CalculateCRC(AnsiString szFileName);
Where szFileName is the name, including any
necessary path information, of the file from which
you wish to obtain a hexadecimal CRC32 image. The
returned value is a 32-bit long integer, which you
can later convert to hexadecimal text with the aid
of the IntToHex function supplied by the VCL. This
function loads the specified file into a stream and
calls CalculateCRCFromStream to perform the
actual calculation.
unsigned long CalculateCRCFromStream(TFileStream *Stream);
Where Stream is an existent and initialized stream
containing the data from which you wish to obtain
a hexadecimal CRC32 image. The returned value is
a 32-bit long integer, which you can later convert
to hexadecimal text with the aid of the IntToHex
function supplied by the VCL.
3. SEE ALSO
===================================================
Be sure to check out our other products too!
AccuLock(tm), our new cutting-edge application
protection component suite for Delphi and C++Builder.
http://www.nagsoftware.com/products/acculock/
NAG Components(tm), the one-stop, cross-platform
component suite for Delphi and C++Builder. With over
70 multi-purpose components, you will not have a
reason to look anywhere else.
http://www.nagsoftware.com/products/nagcomponents/
4. CONTACTING NAG SOFTWARE SOLUTIONS
===================================================
Find us on the Web
http://www.nagsoftware.com/
Fax number
+1 (419) 710-6721
E-mail addresses
General questions and comments:
sales@nagsoftware.com
Bug reports:
bugs@nagsoftware.com
Customer support (*):
support@nagsoftware.com
(*) When requesting technical support, please include
your name, company name (if applicable), operating
system (e.g. Windows ***, etc.) and your compiler version
(e.g. C++Builder 6, etc.). If you have any update
packs installed, please state so in your message.
Also, if you are having a problem or receiving an error
code, please state it exactly.
Regular mail
NAG Software Solutions
3 de Febrero 1715
B1***2FHI San Isidro, Buenos Aires
ARGENTINA
===================================================
Copyright 2002 NAG Software Solutions
All rights reserved
===================================================
近期下载者:
相关文件:
收藏者: