Click to See Complete Forum and Search --> : Validate ZIP Archive [VC6++]


Shaitan00
August 3rd, 2005, 02:51 PM
I created a class (CZip.cpp/.h) that is used to UnZip and Zip files - now I need to create a function able to Test/Validate a ZIP archive...
(using Info-Zip's Zip32.dll and Unzip32.dll)

First question - can I even accomplish such a thing using UnZip.dll?
Specifically I want to mimic the "UNZIP.EXE -T C:\File.ZIP" functionality which tells me if the ZIP is valid or not

Second question - how do I accomplish such a task?
To Unzip I know I can use "*Wiz_SingleEntryUnzip" but I have no clue what to use to Test the Archive?
(nor can I find a complete list of the API calls that are supported)

Any help/clues would be greatly appreciated
Thanks,

Shaitan00
August 3rd, 2005, 04:59 PM
Okay - I found the API called that will do my request "WIZ_VALIDATE"
But my main problem still remains...

I am unable to find out how to use Wiz_Validate - can't find any documentation or examples illustrating the parameters you need to pass in, what it returns, basically how to use it...

Anyone have a clue?
Thanks,

Shaitan00
August 9th, 2005, 07:40 PM
Are you sure about those parameters? Are there examples from where you got those details? I have tried many different approaches but everytime I run the following line of code I get the following error:
line: if (!(*Wiz_Validate)("C:\\File.ZIP", 0))
error: First-chance exception in Project.exe: 0xC0000005: Access Violation.

I have tried many different version of that "error line of code" also, like simply if (!Wiz_Validate("C:\\File.ZIP", 0))... and so forth but it always fails (Access Violation) when it hits the actual Wiz_Validate call...?
I wish there was some samples/examples/documentationon using this feature... does it even work?
(I noticed unzip.exe didn't have this .dll as a dependancy)