home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_tools / lzpackit / lzpackit.txt < prev   
Text File  |  1992-07-10  |  2KB  |  72 lines

  1. LZpackIT.DLL
  2.  
  3. ⌐ Copyright 1992, Ian Taylor. All rights reserved.
  4.  
  5. ------------
  6. INTRODUCTION
  7. ------------
  8.  
  9. I had to install a fairly large number of files during a setup program.
  10. Not only where there a large number of files, but one of them was larger
  11. than 1.4 Mb ! Accordingly there was no way that I could just use the copy
  12. functions to get them across. I looked around for a DLL and couldn't find
  13. one, and found that LZEXPAND.DLL from MS was no use, because I would
  14. have to buy the SDK to get COMPRESS.EXE in the first place. Even then I
  15. thought that this was not very satisfactory since I would not be able
  16. to compress the files except by shelling to DOS.
  17.  
  18. So I wrote LZpackIT.DLL which does the job for me. Please bear in mind that
  19. this is the first version ! I am not altogether happy with it's speed but
  20. it's compression performance is fairly good. It compresses a file to
  21. around the same size as PKZip, sometimes slightly smaller, sometimes bigger.
  22.  
  23. It will only compress/decompress 1 file at a time, so you will have to
  24. invoke the functions over again to do another file.
  25.  
  26. The DLL is based on the Lempel-Ziv algorithm, modified by Adaptive Huffman
  27. Encoding.
  28.  
  29. -----
  30. USAGE
  31. -----
  32.  
  33. The DLL contains 2 Subs:
  34.  
  35. packIT        'Compresses a file
  36. unpackIT    'Decompresses a file
  37.  
  38. The VB Declares for these functions are:
  39.  
  40. Declare Sub PackIT Lib "LZpackIT.DLL" (ByVal SourceFile$, ByVal TargetFile$)
  41. Declare Sub UnPackIT Lib "LZpackIT.DLL" (ByVal SourceFile$, ByVal TargetFile$)
  42.  
  43. At present the DLL does not give any progress indication, or return a
  44. result code.
  45.  
  46. Please provide me with any feedback you may have, and I will bear it in
  47. mind as I write future versions.
  48.  
  49. ------
  50. NOTICE
  51. ------
  52.  
  53. This software is provided free of charge and "as is". You may
  54. distribute it freely providing you distribute this document along with it, 
  55. and you do not modify either the software or this document in any way.
  56.  
  57. I have taken every care to test this program in as many situations and
  58. under as many conditions as I can. Up to now I have not encountered any
  59. errors in compression or decompression of files. You must, however,
  60. satisfy yourself as to its suitability for your purpose:
  61. I cannot accept any responsibility for any adverse results.
  62.  
  63. Ian Taylor 100025,557
  64.  
  65. Moorgate East Farm,
  66. Broad Lane,
  67. Rochdale,
  68. England
  69. OL16 4QL
  70. Tel: (+44) 706-353-412
  71.  
  72. 10/7/92