home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / zkuste / delphi / kompon / d5 / CAKDIR.ZIP / Faq.txt < prev    next >
Text File  |  2001-10-05  |  3KB  |  83 lines

  1. lastupdate 5.19.2001
  2.  
  3. Common Archiver Kit (CAK)
  4. Frequently ask Question (i guess!)
  5.  
  6. Whats CAK?
  7. Common Archiver Kit, a kit which act as a frontend
  8. of a few components.
  9. - not a few now... you dont have to install them all thru, check cakdir.inc
  10.  
  11. Why shouldn`t i use those component directly?
  12. Each component have their interface, e.g. Delphi Zip
  13. uses Add to add files, but another component may uses
  14. AddArchive to add files and the third may use Decode.
  15. The aim of CAK is to simplify your work, you just need
  16. one set of command to deal with all components.
  17.  
  18. What archive do CAK support?
  19. ZIP(PK3,JAR,WSZ,SIT), ZIPSFX, CAB, LZH(LHA), TAR, TGZ(TAZ,GZ,Z), BZ2, BZA(GZA), 
  20. YZ1, UUE(UU), XXE, CZIP, RS, PAK, WAD, ARJ.
  21. - note that PAK, WAD support is wrote by me... =)
  22.  
  23. Why is it free?
  24. Well debug are more easier if it's open-source, and there are
  25. better component if people willing to pay (but well...99 bucks).
  26. In future i will use this component on my Quick Zip software, 
  27. If you like this component, please link my site http://qzip.cjb.net too.
  28.  
  29. What other function do CAK provide?
  30. Beside providing frontend, CAK does provide a few more
  31. features to simplify the job.
  32. > CAK will check the archive type, and use proper component for it.
  33. > CAK will find and get the icon, file type of file in archive.
  34. > CAK included Archive Finder, Archive Converter for all supported archive.
  35. > CAK provide a Listview that can fill up the file list by a single command.
  36. > CAK can sort filelist, provide Directory list.
  37. > CAK enable your program to load script.
  38. > CAK let you load multiple archive.
  39. > CAK provide a filetype finder which can recongnize about 500 file types.
  40. > CAK provide a big sum of function to work with registry, inifiles.
  41. > If CAK provide support a new archive type later, all you need to do
  42.   is to replace Cakdir.pas, instead of dealing with new interface again.
  43.  
  44. How to Load an archive?
  45. (more detail in demo)
  46. 1. Make a new application.
  47. 2. Drop a CAKListview (CakListview1) and CakDir (CakDir1) onto the form
  48. 3. set CakListview1 property : Cakdir to CakDir1
  49. 4. Add the archive to Archive_List using Set_Archive_List
  50. 5. Call CakDir1.List_Archive(0,0) command 
  51. - (which list from first archive to first archive)
  52. 6. Call CakListview1.ReloadCAK;
  53. - If you dont want to use caklistview, try CakDir1.Archive_Contents[0]._Filename
  54.  
  55. How to Extract files?
  56. (more detail in demo)
  57. 1. Add the archive to CakDir1.Archive_List using CakDir1.Set_Archive_List
  58. 2. Set "where to extract" by CakDir1.ExtractOptions.extr_to
  59. 3. Call CakDir1.Extract command.
  60.  
  61. How to sort the file list?
  62. (more detail in demo)
  63. Cakdir1.Sort_Archive_List(accending,_FName);
  64.  
  65. How about Adding?
  66. (more detail in demo)
  67. 1. Open the archive first..
  68. 2. CakDir1.Addoptions.strings.add('c:\demo.txt');  (it's tstrings)
  69. 3. Call CakDir1.Add command;
  70.  
  71. How to know if CAK can do what action to specific type of archive?
  72. 1. if CakDir1.Cando(_ZIP, _ADD) then...
  73. - the function will check if it support and if dll exist.
  74.  
  75. What is processfrom and processto?
  76. CAK provide multiarchive loading, processfrom and processto tell
  77. CAK which archive to start and where to stop processing, this is useful when
  78. you provide Multi-Extract.
  79.  
  80. What if i still have questions?
  81. Please post on Qzip's Message board.
  82. http://quickzip.ifroggy.com/support/boards.php
  83.