XbZLibZip and Sub-item Errors

Moderator: Moderatoren

Antworten
Stephan Borst
Rookie
Rookie
Beiträge: 14
Registriert: Mi, 15. Jun 2016 10:33

XbZLibZip and Sub-item Errors

Beitrag von Stephan Borst »

Hi all,

I am running Xbase 2.0 (but it is the same on 1.92) and I am creating Zip-ffiles like:

oZip := XbZLibZip():New( "V2025_100.zip" )
if oZip:IsOpen( .t. )
oZip:AddFile( "V2025_100.txt" )
endif
oZip:Close()

The created ZIP-file can be opened with Explorer and the content look fine.
However, when validating the ZIP with:
https://www.luxa.org/archive

I get error like:
Testing archive: /archive/V2025_1000.zip
--
Path = /archive/V2025_1000.zip
Type = zip
Physical Size = 330
0% 100% T V2025_1000.txt
Sub items Errors: 1
Archives with Errors: 1
Sub items Errors: 1


Has anyone any idea what those Sub items Errors are ?
And how to get rid off them?

Is there any alternative to create ZIP-files?
I tried Xb2.NET function xbZCompressFile( "V2025_100.txt", "V2025_100.zip")
but that gives me the same problem. Maybe due to the fact that Xb2.NET internally uses
the zlib1.dll as well.

Regards,
Stephan Borst
Benutzeravatar
Tom
Der Entwickler von "Deep Thought"
Der Entwickler von "Deep Thought"
Beiträge: 9851
Registriert: Do, 22. Sep 2005 23:11
Wohnort: Berlin
Hat sich bedankt: 136 Mal
Danksagung erhalten: 470 Mal
Kontaktdaten:

Re: XbZLibZip and Sub-item Errors

Beitrag von Tom »

Ich nutze u.a. dafür Chilkat. Sensationell kompakt, irre schnell und elegant einzubinden. www.chilkatsoft.com
Herzlich,
Tom
Stephan Borst
Rookie
Rookie
Beiträge: 14
Registriert: Mi, 15. Jun 2016 10:33

Re: XbZLibZip and Sub-item Errors

Beitrag von Stephan Borst »

Thanks Tom,

I had a quick look on Chilkat.
I suppose you are using ActiveX to implement this?

I am having a desktop-app which I distribute to my customers. I would rather
not use ActiveX since: "ActiveX DLLs need to be registered on any computer where they are used. ".
That will make my live very complicated (I think).

Anyone other ideas?

Regards, Stephan
Benutzeravatar
Tom
Der Entwickler von "Deep Thought"
Der Entwickler von "Deep Thought"
Beiträge: 9851
Registriert: Do, 22. Sep 2005 23:11
Wohnort: Berlin
Hat sich bedankt: 136 Mal
Danksagung erhalten: 470 Mal
Kontaktdaten:

Re: XbZLibZip and Sub-item Errors

Beitrag von Tom »

Hi, Stephan.

Yes, we do use Chilkat as an ActiveX component. We simply added the component to the manifest file, so it is registered automatically. This works very smooth. Chilkat is a genius tool and has lots of fantastic features. The samples can be easily adapted from FoxPro to Xbase++.
Herzlich,
Tom
RolandG
Rekursionen-Architekt
Rekursionen-Architekt
Beiträge: 361
Registriert: Mi, 09. Jan 2019 16:02
Wohnort: Neresheim
Hat sich bedankt: 2 Mal
Danksagung erhalten: 17 Mal
Kontaktdaten:

Re: XbZLibZip and Sub-item Errors

Beitrag von RolandG »

Stephan Borst hat geschrieben: Mi, 26. Feb 2025 14:37 oZip:AddFile( "V2025_100.txt" )
i use
oZip:AddDir(...)

Code: Alles auswählen

 Bsp.:
   cFileSpec := *.*
   cZipPath := "c:\DirToZip\"
   lSubDir := .T.
   oZip:AddDir( cFileSpec , cZipPath , NIL , lSubDir , NIL , .F. )
may be the problem is that you add files to root of zip without any path or subdir?
Gruß
Roland
Antworten

Zurück zu „Andere 3rd-Party-Tools“