Hi. Can you please explain what goes in to each parameter, what types of arguments and what they are for? BTW, you've done an awesome job! I am thrilled this exists! Take care.
CreateZip(zipFileName as String, sourceDirectory as String, recurseDirectories as Boolean, fileFilter as String)
zipFileName: The zip file to be ceated. Ex. AppPath & "\test.zip"
sourceDirectory: Where the files to zip are. Ex. AppPath or \Temp
recurseDirectories: Add directoriies Info or not. Ex. true
fileFilter: Files with what extension to add. Ex. .txt or .sbp
ExtractZip(zipFileName as string, targetDirectory as String, fileFilter as String)
zipFileName: The zip file to be unzipped. Ex. AppPath & "\test.zip"
targetDirectory: In which folder should put the files. Ex. AppPath or \Temp
fileFilter: Files with what extension to unzip. Ex. .txt or .sbp
Zip and Unzip Library for Basic4PPC. Targets .NET 1.1 (desktop) and .NET 1.0 (device) and needs ICSharpCode.SharpZipLib.dll (open source zip library)
Has 4 functions. All of them works for desktop, but 3 of them works for the device.
For CreateZip (desktop only) and ExtractZip (device and desktop) see previous post.
Short description for 2 new functions:
ZipFiles(FilesToZip, ZipFile)
FilesToZip an array of string containing full path filenames to zip
ZipFile a string containing full path of zip file to be created
UnzipFiles(TargetDirectory, ZipFile)
TargetDirectory a string containing full path to folder where zipped files will exists after unzip. If the folder doesn't exists it will be created by the library.
ZipFile a string containing full path of zip file to be unzipped.
I ask for your understanding because of the very very early development stage.
When I unzip and load the ZipTest1 app in the Basic4ppc editor to test with, I get this Basic4ppc message: An error occured. The format of the 'dzZipLib.dll' is invalid. I also get this when I click OK on the Components dialog box with dzZipLib.dll loaded. Any ideas anyone?
use ICSharpCode.SharpZipLib.dll and dzZipLib.dll from the second version I've posted. They are both compiled for .NET 1.0.
In the first post they are compiled for .NET 2.0 and I think that this is the problem. Do you have .NET 2.0 installed?
use ICSharpCode.SharpZipLib.dll and dzZipLib.dll from the second version I've posted. They are both compiled for .NET 1.0.
In the first post they are compiled for .NET 2.0 and I think that this is the problem. Do you have .NET 2.0 installed?
I downloaded the second version and it worked. But I do have .Net 2.0 installed. To be specific I have version 2.0.50727. I got this from Visual Studio 2005..Help..About. I would think either version should work. If I look in Add and Remove Programs it shows I have .Net 1.1 and 2.0 installed. Should I remove version 1.1? Maybe there is a .Net 2.0 service pack I do not have.
Hi.
When I load the library into the IDE on the Pocket PC I get this error when using the .net 1.0 version:
Could not load type IPCSharpCode.SharpZipLib.Zip.FastZip from assembly Version=0.85.1.271, Culture=neutral, PublicKeyToken=1B03E6ACF116
Am I missing something? I have both the DZTZipLib.dll and the ICSharpCode .dll you provided. Any help would be cool! Thanks, and I am still excited about this library. BTW, you have any plans on doing sound libraries, like being able to play and control multiple sounds? Thanks, and keep up the great work!
Last edited by Louis : 07-05-2007 at 07:12 PM.
Reason: Misspelled words
adukes, that is why you take an error message when you are trying to open ziptest1.sbp with the .NET 2.0 dzZipLib.dll I've posted at the beginning of this thread. You need a config file. See the first link in this post and download config file for desktop. But I suggest you to use DLLs from the second version I've posted. You loose nothing and you have some benefits (two more functions, PPC compatibility).
Louis, for the same reason you need a config file for your device. Download it from the first link.
Be careful, what Basic4PPC needs to run under .NET 2.0, needs your compiled application too. A config file. Try to rename dBasic.exe.config or Basic4ppc.exe.config to YourApp.exe.config and put it in the same folder as YourApp.exe.