Hi,
I've searched the forum for information about extracting and creating zip archives from within PureBasic, but I was only able to come accross information about rars.
So, I was wondering if anyone had any information about how to do this. There will only be 1 file per archive.
What I wish to do, is save a sprite to a zip, and load a sprite from a zip.
Any information is greatly appreciated.
Cheers,
-Toris
Extracting, and Creating Zip Archives
ZLIB andRunProgram
ZLIB is a library of routines for zipping and unzipping files from within your program. You can also use RunProgram() or ShellExecute() to call an archive program such as PKZIP or WinZIP directly. Pure programmers insist that the better way is to call from a library, but I am of the mind that whatever works for you should suffice. The only problem with RunProgram() and ShellExecute() is your assumption that the needed archive program is on the target PC.
ZLIB is prevalent on a number of programming sites around the internet. A good search engine should turn it up from several sources. A full archive package may offer some benefits that go beyond the routines found in ZLIB, but you have the advantage of making that call for yourself if you like.
ZLIB is prevalent on a number of programming sites around the internet. A good search engine should turn it up from several sources. A full archive package may offer some benefits that go beyond the routines found in ZLIB, but you have the advantage of making that call for yourself if you like.
has-been wanna-be (You may not agree with what I say, but it will make you think).
zlib Homepage
http://www.gzip.org/zlib/
zlib DLL
http://www.winimage.com/zLibDll/
An excellent library, I've used it a lot in web apps!
http://www.gzip.org/zlib/
zlib DLL
http://www.winimage.com/zLibDll/
An excellent library, I've used it a lot in web apps!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net