title: using 7z.dll for in-memory compression and decompression
body: <p>I am writing a compression interface for a Windows XP+ application. My requirement is to use the supported interfaces of 7-zip to perform compression and decompression of in-memory data, not file data. Currently, I have kluged together a program which writes the data to a temporary file on disk, invokes 7z.exe to compress or decompress the data to a second temporary file, then returns the contents of the second file; that works, but I would rather use 7z.dll directly. The programming language I have to use is similar to Visual Basic, and can use DLL functions exported from 7z.dll, or OLE objects. Can anyone point me to sample code in VB that uses 7-zip to perform compression/decompression on-the-fly? </p>