| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Mon May 19, 2003 10:24 pm Post subject: CRC / Error checking type thingy. |
|
|
I want to make a program that can check wether a file is damged.
Say i had a file that was damaged, the program could look at the file and tell you its its damage and then fix it if you choose to.
I though I could do it by keeping copies of the files but this wont work with huge files.
How can i make a crc type program? |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Tue May 20, 2003 12:23 am Post subject: |
|
|
| R u sure, i coudlnt see any info anout crc checks. |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue May 20, 2003 12:28 am Post subject: |
|
|
Hi DW,
The DLL you are looking for is my Guardian.dll... It has the ability to get the CRC of a file. I have bundled the Guardian.dll with my Gadget distribution. Also there is a copy of this dll with the bassmod example that you can download from the main page on my site. Sorry this is a free DLL and I use it for alot more than getting the CRC of a file so not much information has been released about it to the general public and I want to keep it that way. If you purchase a copy of Gadget I will give you the information to use this DLL's full abilities. _________________ Home of
Give VDS a new purpose!

Last edited by vdsalchemist on Tue May 20, 2003 12:45 am; edited 1 time in total |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue May 20, 2003 12:41 am Post subject: |
|
|
To initialize the Guardian.dll in VDS use this line.
External Guardian.dll
--> Returns the CRC of a file.
<CRC for a file> = @Guardian(<file path\name.ext>,<decimal>)
Nothing else is needed. The CRC is returned in Hexidecimal value by default. You can use the optional style 'decimal' to return the CRC in decimal format. The CRC value that is returned is the same as what you would find from programs like WinZip and other compression and security programs.
Also I almost forgot if you have any problems using the DLL please PM me or send me an email. I cannot and will not tell you more here. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Tue May 20, 2003 1:08 am Post subject: |
|
|
| Thank you mindpower. I will look into that dll, and if i find it useful i will indeed buy a copy. |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue May 20, 2003 12:54 pm Post subject: |
|
|
| DW wrote: | | Thank you mindpower. I will look into that dll, and if i find it useful i will indeed buy a copy. |
Hi DW,
The Guardian.dll is not for sale. You do not need to buy my Gadget.dll to do what you posted in this thread. Anyone is welcome to use the Guardian.dll for CRC checking. You just will not get the information about the rest of the Guardian.dll is all. Also I forgot to tell you the CRC value that is returned is the 32bit CRC value. The Guardian.dll uses the industry standard CRC32 algorythm with CRC reflection to validate it's tables. Also the table is generated such that it cannot be spoofed which means the table is not hardcoded and is calculated. Also note the algorythms are very fast and I think Garrett can speak for the speed. He did the beta testing and we tested rather larger files... I cannot remember what the final spec was. Of course the speed depends on the speed of the hardware that you are running it on. The faster the processor and harddrive the faster the DLL can work.
Anyway have fun with it and I hope to see a really cool application come from it  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|