10-11-2011, 07:11 PM
Well lately I have been programming a lot. I love to do it. So I thought since I found an amazing source code of how to zip files I would release, but then I got the idea to make it into a .DLL. I did that for simplicity and to show you guys some more about Dlls and how they work. I am very new to them as well, but I decided to share what I know with you guys. So here is a download link to the .Dll.
Click here to download the DLL.
Source at bottom.
Please note I do not take credit for the source, but I do take credit for implementing it into a .DLL.
Here is an example of how to use the .DLL;
First add the .dll as a reference.
Also you must add Windowsbase.dll (Should be in the .net tab) as a reference
Now here is a bit of source that is commented.
Also note there is 5 different compression types;
Source here.
Click here to download the DLL.
Source at bottom.
Please note I do not take credit for the source, but I do take credit for implementing it into a .DLL.
Here is an example of how to use the .DLL;
First add the .dll as a reference.
Also you must add Windowsbase.dll (Should be in the .net tab) as a reference
Now here is a bit of source that is commented.
Code:
'Create or open the .zip for writing or reading, and also it specifies the path
Dim zip As Package = ZipPackage.Open(curdir & "\backupcf.zip",
IO.FileMode.OpenOrCreate, IO.FileAccess.ReadWrite)
sub main()
'This is the actually writes the file into the .zip.
Zipitup.AddToArchive(zip, "C:\file.txt")
- Max
- Normal
- Fast
- Superfast
- None
Source here.