PureZIP library : ZIP / UNZIP files

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post by kinglestat »

does pureZIP lib work under linux ?
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

kinglestat wrote:does pureZIP lib work under linux ?
No.
(Uses ZLIB static lib for windows and some API functions.)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

**OFF TOPIC (apologies!)

I swear Gnozal is a machine, he can't be human!

How does one man hold down a job (family perhaps as well?) and produce, as a hobby, so much code? :shock:

Yea, he's really a multi-core multi-processor server sat in Fred's office, covered in coffee with a plant pot to one side and a dart board attached to the other for when Fred get's tired of coding!

Either that or the drugs really do work! :wink:

Thanks man.

(Sorry for the off-topic post here.)
I may look like a mule, but I'm not a complete ass.
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post by kinglestat »

well, srod, I suspect you are just too modest ;)
both of you are just bloody geniuses
I'm just bloody.....blasted pot holes!
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
Micko
Enthusiast
Enthusiast
Posts: 244
Joined: Thu May 24, 2007 7:36 pm
Location: Senegal
Contact:

Post by Micko »

kinglestat wrote:well, srod, I suspect you are just too modest :wink:
both of you are just bloody geniuses
that is what i also think
kinglestat wrote:I'm just bloody.....blasted pot holes!
me too :)
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Could you do a PB4.20B1 version of this lib, on PB4.20B1 there is a POLINK error as the Mid command has been changed?

Thanks. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

DoubleDutch wrote:Could you do a PB4.20B1 version of this lib, on PB4.20B1 there is a POLINK error as the Mid command has been changed?

Thanks. :)
Sure : http://freenet-homepage.de/gnozal/PureZIP___.zip
Just recompiled with PB4.20 beta 1, not tested.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

That POLINK _Mid_ problem showed up in a few other libs as well. otherwise, this pb edition seems quite stable for me.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Fangbeast wrote:That POLINK _Mid_ problem showed up in a few other libs as well. otherwise, this pb edition seems quite stable for me.
Yes, some other user librairies are broken.
I will release a specific PB4.20 version of my libs if needed for PB4.20 final, or for any PB4.20 beta on request.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Thanks. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Is it possible to add a file to an archive at a specified location?

Let's say I have a zip archive that looks like this:

Code: Select all

ROOT
  |-Folder 1
  |----File 1
  |----File 2
  |-Folder 2
  |----File 3
  |----File 4
  |-File 1
  |-File 2
Is it possible to manually add a file to the Folder 1 or Folder 2 locations inside the archive without extraction all the files?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

GeoTrail wrote:Is it possible to add a file to an archive at a specified location?
Kind of, if your file is in folder 'Folder 1' on the disk.
Example 1 :

Code: Select all

If PureZIP_Archive_Create("c:\Test.zip", #APPEND_STATUS_CREATE) 
  
  PureZIP_Archive_Compress("c:\PureBasic410\Compilers\PBCompiler.exe", #True) 
  
  PureZIP_Archive_Close() 
EndIf
;
; we have a zip file with this structure :
; PureBasic410
;    |
;    ---Compilers
;           |
;           --PBCompiler.exe
;
; Now we want to add APIFunctionListing.txt into compilers
;
If PureZIP_Archive_Create("c:\Test.zip", #APPEND_STATUS_ADDINZIP) 
  
  PureZIP_Archive_Compress("c:\PureBasic410\Compilers\APIFunctionListing.txt", #True) 
  
  PureZIP_Archive_Close() 
EndIf
; we have a zip file with this structure :
; PureBasic410
;    |
;    ---Compilers
;           |
;           --PBCompiler.exe
;           --APIFunctionListing.txt
or you could use a base directory like http://www.purebasic.fr/english/viewtop ... &start=340
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks gnozal.
I'll have a closer look at that tonight :
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Frontier
User
User
Posts: 74
Joined: Thu Dec 22, 2005 2:43 pm
Location: Chios, Greece
Contact:

Post by Frontier »

Hi gnozal,

Is it possible to compile your library against PB4.20b1, because it exhibits the same problem with POLINK like PurePOP3/SMTP did.

Thank you very much in advance.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Please see link (8 posts above) :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply