[delphizip] Re: [mad and ugly] storing drive spec in a zip file

  • From: "Roger Aelbrecht" <Roger.Aelbrecht@xxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Fri, 20 Feb 2004 19:33:53 +0100

Roland Ruder wrote:
> Sorry, dear DelZippers, but I'll ask you again (with my still bad
> english again):
>
> Why the hell should do the DLLs all the work?
>
> Zipping "c:\test.txt" and "d:\text.txt" into the same ZIPfile is a
> very hard problem to solve! For the DLLs!
>
> But I still wonder, why this (double-touble) problem has to be solved
> by the DLLs?
>
> IMHO it's only a problem of the application, that's going to use the
> DLLs!
>

The Dll's create a Zip archive from the files you listed in FSpecArgs.
If you include the drive spec in FSPecArgs then this is omitted by the DLL's
This inherent in the design of the dll's from the beginning.
Please try to do the same with Winzip and watch the result.
They started with the same dll's

Its is not only a problem of the application using the dll it is also
a specification how a PKZIP file will be structured.
Changing this structure will prevent other applications to use the zips
created by our component.

> What are ZipFile-Comments good for?

You can add comments in there as you want

> What are ZipFile-FileComments good for?
>
These allow to add comments on a per file basis, you can put your
comment in the OnFileComment, but be aware that this event is
fired by the dll's, so at that moment you need to be sure what file
it is for.


> Maybe the Drive-Letter could be stored in the ZipFile-FileComment?
> Not by Default, but optionally?
>

Yes you can but you need to be sure for what file the event is called for
IIRC the Dll will use the order of files as they are put in the FSpecArgs
list

> Again: Why should do the both DLLs all the work instead of the
> application's programmer's program?
>

Because that's how it was designed.
The Dll's do the work,
The ZipMaster/ZipBuilder component provide for an VCL interface to this
dll's and the applications programmer uses the methods and properties of
the VCl components

> Please advice, discuss or name me "the other BIG stupid but not
> canadian NX-Fan from Germany. With no bushes [hidding] ever at all"
> ;-) ;-) ;-);-) ;-) ;-) ;-) ;-)
>
> And please *Hold Your Head Up* (very old Songs by  "Argent" or "Uriah
> Heep")....
>
> Best and very friendly (but very unsophisticated!) Regards,
> Roland
>

HTH

Roger Aelbrecht
http://web.wanadoo.be/driehoeksw

-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: