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 Comment
TazWurst
andreas.maurer@softservice.de

From: Duesseldorf, USA
Posts: 20
Member Since: 09/12/05
posted April 17, 2009 6:45 AM

Hallo support,

I am currently evaluating the ZIP ActiveX tool.
All is working as expected except then Archive Comment.

I try the following code:

Private Sub Form_Load()
 Zip1.FileStore.VolumeLabel = ""
 
 Zip1.FileStore.Clear
 Zip1.FileStore.Add "C:\boot.ini"
 Zip1.FileStore.Comment = "BOOT COMMENT"
 Zip1.FileStore.Zip "c:\boot.zip"
End Sub

The comment is not stored to the zip file. Any Idea?

Andreas
TazWurst
andreas.maurer@softservice.de

From: Duesseldorf, USA
Posts: 20
Member Since: 09/12/05
posted April 17, 2009 7:13 AM

As an addition to my last post:

the ZIP Object can read the ZIP Comments written with other products like WinRAR without any problems.
Writing comments to ZIPs is the problem. Even you ZIPMan sample displays the comments from other products correct. But after writing ther own comment the string scrambles. I guss the load routine reads the wrong memory area :(

Andreas
TazWurst
andreas.maurer@softservice.de

From: Duesseldorf, USA
Posts: 20
Member Since: 09/12/05
posted April 17, 2009 8:37 AM

Add 2 :)

I have checked the generated ZIP from your tool with a bunch of other UnZIP Tools. Some of them claims error in structur. Perhaps the installed "WebServer for ActiveX" causes some DLL Problems. Here are the relevant DLLs on my system:
2.8.3.0       C:\Windows\system32\DartCertificate.dll
2.8.0.14       C:\Windows\System32\DartMail.dll
2.0.6.0       C:\Windows\system32\DartSecure2.dll
3.1.3.0       C:\Windows\system32\DartServer.dll
3.1.3.0       C:\Windows\system32\DartService.dll
2.8.3.25       C:\Windows\System32\DartSock.dll
2.8.0.6       C:\Windows\System32\DartUtil.dll
1.8.3.0       C:\Windows\system32\DartWebServer.dll
1.8.3.0       C:\Windows\system32\DartWebUtil.dll
1.8.8.0       C:\Windows\System32\DartZip.dll

Andreas
Jason Farrar (Admin)

From: USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted April 20, 2009 5:32 PM

Hello,

 I've duplicated this issue and reported it as issue #5068 you can contact Jamie Powell (jamie.powell@dart.com) for information on the availability of a fix. In the meantime I've found that the following code works correctly when setting the comments property of the first file in the archive, so as a work around until this is fixed, you could do this:

Private Sub Command1_Click()
  On Error GoTo OnError
  Command1.Enabled = False
  Zip1.FileStore.Clear
  Zip1.FileStore.Add "d:\test\folder\", True, True
    Zip1.FileStore(1).Comments = "This is a comment"
  Zip1.FileStore.Zip "c:\test.zip"
  Zip1.FileStore.Clear
  Zip1.FileStore.Load "c:\test.zip"
  MsgBox Zip1.FileStore(1).Comments
  GoTo Done
OnError:
  MsgBox "ERROR #" + CStr(Err.Number) + ": " + Err.Description
Done:
  Command1.Enabled = True
End Sub
TazWurst
andreas.maurer@softservice.de

From: Duesseldorf, USA
Posts: 20
Member Since: 09/12/05
posted April 21, 2009 5:55 AM

Hello Jason,

thanks for your reply. But your workaround only stores a file comment. All other ZIP applications did not know anything about this. My other apps are using the ZIP Comment to figure out the contents of the ZIP File.

For now I write the comment with another control I bought some years ago. But zipping with your ActiveX is so much faster. I donīt want to miss it :)

Andreas
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX