Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Zip it up /w source [.DLL]
#1
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.

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")
Also note there is 5 different compression types;
  • Max
  • Normal
  • Fast
  • Superfast
  • None

Source here.
Reply
#2
Looks good thanks for the share, dll's are easy to use, they are class files. I usually use them when I make like custom buttons and stuff.
~ Digital-Punk
Reply
#3
Is there any way we can unzip the file instead of just zipping it up?
Reply
#4
Can you post some screenies of this pls?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Source ] Hemp Tycoon App [/Source] VB.net KoBE 8 9,758 03-05-2012, 10:30 PM
Last Post: SomeWhiteGuy?
  [Source]Sql Database Project [Source] Digital-Punk 0 1,440 10-16-2011, 07:01 AM
Last Post: Digital-Punk
  [Source]Batch to Exe converter[Source] Digital-Punk 6 2,983 10-15-2011, 03:00 AM
Last Post: Digital-Punk
  [Source]File Assembly changer Vb.Net[Source] Digital-Punk 0 3,105 10-13-2011, 06:35 PM
Last Post: Digital-Punk
  [New\Source\Release] Binary Code <> English Converter [New\Source\Release] Resistance 16 8,091 05-15-2011, 05:42 AM
Last Post: Blixx

Forum Jump:


Users browsing this thread: 1 Guest(s)