Login  
Search All Forums
Dart Home | PowerTCP Zip Compression for Active | Custom Development Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
AuthorForum: PowerTCP Zip Compression for ActiveX
Topic: Zip/Unzip doesn't keep identical time stamp
User142

Posts: 18
Member Since: 07/18/01
posted March 8, 2002 1:30 AM

Try this code:

CZip Zip;
Zip.Create(ZIPTOOL_LICENSE);

try
{
// Zip a file
Zip->FileStore->Add(_bstr_t("Input/ziptest.txt"),VARIANT_TRUE,VARIANT_FALSE,_bstr_t(""),DartZip::zipNoEncryption);
Zip->FileStore->Zip(_bstr_t("Archive/ziptest.zip"),NULL);
Zip->FileStore->Clear();
// Unzip a file
Zip->FileStore->Load(_bstr_t("Archive/ziptest.zip"));
Zip->FileStore->Unzip(_bstr_t("Output"),VARIANT_FALSE,VARIANT_TRUE,_bstr_t(""));
Zip->FileStore->Clear();
}
catch(_com_error comerr)
{
DWORD hr = comerr.HelpContext();
_bstr_t desc = comerr.Description();
}

It adds 8 hours to the "Last Modified" time of the file in the archive. The archive is created correctly (e.g. when opening ziptest.zip with WinZip, the time is correct). But when the archive is unzipped using the Zip control, the "Last Modified" time of the file created is not correct.

I have also emailed the whoile test project to support@dart.com

I'm running in Win200Pro, using Australia-NSW-Sydney Locale settings.

Thanks
User142

Posts: 18
Member Since: 07/18/01
posted March 8, 2002 1:38 AM

I've just realised that this is a similar problem to a previous post "Modification date of zipped file is wrong by Marieke Stokman at 1/2/2002 5:42:19 AM"
It's been more than 2 months, have you got a solution for this?
I wanted to use this control to transfer and archive files and time stamps are critical.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 8, 2002 2:35 PM


Hi,
It is similar, but not the same.
This will be fixed in our next update.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX