I am trying to learn VB .Net 2005 Express Edition from a VB 1 (It has been a few years) background. I have the need to invoke Zip functionality from within VB code. Looking around the net, I find that the InfoZip organization seems to be the most prominent (and free). so I downloaded a page of instructions and a directory of support files. (The attached Zip file contains those support files: the first file, AnArticle.txt, is the instruction page mentioned above; the two DLL’s have been left out to keep the attachment size down.) And while the sample code in those instructions is straight forward, I cannot figure out how to use the support files.
Here’s what I did: 1) I copied the two DLL’s (Zip32.dll – 130KB and Unzip32.dll – 140KB) to C:WindowsSystem32, but that did not seem to do anything. 2) I defined a CGZipFiles Class into which I copied the contents of the CGZipFiles.cls file, but all that did was generate masses of compiler error messages. So where I now stand is that I’ve entered the following code into VB’s IDE and have not the faintest idea where to go from from here.
Module Module1
Sub Main()
Dim oZip As CGZipFiles
oZip = New CGZipFiles
‘ The rest of the code copied from the instructions.
End Sub
Class CGZipFiles
‘ I have no idea what to put in here.
End Class
End Module
Will someone please explain in detail how I can get this to work? Thank you for your time and patience.
John Littell