forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


CRC / Error checking type thingy.

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Mon May 19, 2003 10:24 pm    Post subject: CRC / Error checking type thingy. Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon May 19, 2003 10:28 pm    Post subject: Reply with quote

I think the Gadget DLL has CRC features, or another DLL from the same author.


Gadget download: http://www.vdsworld.com/index.php?page=download&fileid=205

Gadget homepage: http://dragonsphere.vdsworld.com

-Garrett
Back to top
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Tue May 20, 2003 12:23 am    Post subject: Reply with quote

R u sure, i coudlnt see any info anout crc checks.
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue May 20, 2003 12:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue May 20, 2003 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Tue May 20, 2003 1:08 am    Post subject: Reply with quote

Thank you mindpower. I will look into that dll, and if i find it useful i will indeed buy a copy.
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue May 20, 2003 12:54 pm    Post subject: Reply with quote

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 Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group