Command-line file codec sample using algorithm by original author of Zip

Category:
Miscellaneous
Type:
Applications
Difficulty:
Intermediate

Author: neophile

Version Compatibility: Visual Basic 6

More information:
This requires the completely free ZLib.dll You can find it in many different colors and flavors at: http://www.gzip.org/zlib/ ...along with some info about the authors and some interesting implementations of it. (NT/2000/XP users/developers, check out CExe) Below is a sample project that will take a file from a command line and compress it or decompress it accordingly. This is just the guts and I'm sure you'll do more with it (like adding an entry into HKEY_CLASS_ROOT/*) but here goes...

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: