README 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. _______________________________________________________________________________
  2. This is the Windows CE Info-ZIP port README, last updated 17 September 2003.
  3. _______________________________________________________________________________
  4. Copyright and Disclaimer
  5. _______________________________________________________________________________
  6. Copyright
  7. All the source files for Pocket UnZip are copyrighted by Info-ZIP.
  8. For details on terms and conditions look into the LICENSE file
  9. that should be part of the source distribution.
  10. The original author Steve P. Miller has gracefully allowed to
  11. put his own source contributions for "Pocket UnZip" under the
  12. Info-ZIP license.
  13. Disclaimer
  14. All project files are provided "as is" with no guarantee of
  15. their correctness. The authors are not liable for any outcome
  16. that is the result of using this source. The source for Pocket
  17. UnZip has been placed in the public domain to help provide an
  18. understanding of its implementation. You are hereby granted
  19. full permission to use this source in any way you wish, except
  20. to alter Pocket UnZip itself. For comments, suggestions, and
  21. bug reports, please write to stevemil@pobox.com or to the
  22. generic Info-ZIP e-mail address Zip-Bugs@lists.wku.edu.
  23. _______________________________________________________________________________
  24. About the Windows CE Port (known as "Pocket UnZip")
  25. _______________________________________________________________________________
  26. The Windows CE port, known as Pocket UnZip, is designed to run on Microsoft's
  27. Windows CE operating system. The port is completely contained in the files
  28. listed above. There were very few minor modifications made to the Info-ZIP
  29. code in order for this port to work. This was possible because the Info-ZIP
  30. code is fairly generic and also because several hooks have already been placed
  31. in the code from past Windows ports. The Windows CE port leverages off of
  32. these efforts for two reasons. Mainly, I wanted to avoid modifying the
  33. Info-ZIP core code since people don't like it when your changes break other
  34. ports. Second, this makes the Windows CE port easy to upgrade when fixes and
  35. features are released by the Info-ZIP group.
  36. The port is made up of the project file (punzip.dsp), one global header
  37. (punzip.h), three main source modules (winmain.cpp/h, intrface.cpp/h,
  38. and wince.cpp/h), the resource script files (punzip.rc, punzip.rcv, and
  39. resource.h), several resources (punzip.ic2, zipfile.ic2, imglist.2bp,
  40. ilmask.bmp, toolbar.2bp, punzip.ico, zipfile.ico, imglist.bmp, and
  41. toolbar.bmp), and the help file (punzip.htp).
  42. The application's entry point is WinMain(), which is located in winmain.cpp
  43. (what a surprise). winmain.cpp basically contains all the Windows code and
  44. the user interface. It knows nothing about the Info-ZIP code or things like
  45. the Globals struct. That stuff is the job of the intrface module.
  46. intrface.cpp implements an easy (or at least easier) to understand interface
  47. to the Info-ZIP routines. It also handles all the callbacks from Info-ZIP
  48. and relays the appropriate information back to the code in winmain.cpp.
  49. The final module is wince.cpp. This module implements all the Win32 APIs
  50. and C runtime functions that are called by the rest of the code, but are
  51. not natively implemented on Windows CE. Most all of this module is excluded
  52. for NT native builds.
  53. Two preprocessor defines are used in conjunction with several defines from
  54. the Info-ZIP code and from other ports. The two that are specific to the
  55. Windows CE port are:
  56. POCKET_UNZIP Always set for the Windows CE port (CE and NT).
  57. _WIN32_WCE Set for Windows CE native; not set for Windows NT native.
  58. These three defines are the minimum defines that must be addressed by the
  59. project file in order to build this port. This port's main header, punzip.h,
  60. gets included by all the Info-ZIP source files when POCKET_UNZIP is defined.
  61. punzip.h in turn ensures that all the other relevant Info-ZIP defines are set
  62. to correctly build the port. If you wish to alter the Info-ZIP defines used
  63. to build this port, you can do so by altering punzip.h.
  64. There are quite a few _WIN32_WCE checks throughout the source files for this
  65. port. These checks allow the application to build natively for Windows NT for
  66. debugging purposes, and just because it can with little effort due to the
  67. similarities between the Windows CE API and the Windows NT API. Any non-Windows
  68. CE code is assumed to be for Windows NT only. This project currently will not
  69. work on Windows 95 because Windows CE is mostly UNICODE, and this port assumes
  70. that all Win32 calls to the operating system take UNICODE parameters. I could
  71. scatter a few dozen "#ifdef UNICODE" checks around and make it work on Windows
  72. 95, but I see no reason to complicate this port's code for that reason since
  73. there is already a Windows 95 port of the Info-ZIP code.
  74. _______________________________________________________________________________
  75. Building the Windows CE Port (known as "Pocket UnZip")
  76. _______________________________________________________________________________
  77. At the time this README was written, Microsoft just released Visual C++ for
  78. Windows CE version 1.0. This development kit uses the the standard Microsoft
  79. Visual C++ version 5.0 or 6.0 development environment and project files
  80. (DSP files). To build Windows CE binaries of Pocket UnZip, you will need
  81. version 1.0 or later of Visual C++ for Windows CE.
  82. This port's project file, punzip.dsp, contains the information for building all
  83. the various binaries. These include Windows NT native, Windows CE native for
  84. Hitachi SH-3 processors, and Windows CE native for MIPS processors. All
  85. projects have Debug and Retail flavors as well. The following table lists the
  86. Windows CE devices and which binary they run:
  87. Manufacturer CPU Binary
  88. --------------------- ------------ ------
  89. Philips Electronics MIPS R3910 MIPS
  90. NEC Corp. NEC VR4101 MIPS
  91. Casio Computer Co. Hitachi SH-3 SH-3
  92. Compaq Computer Corp. Hitachi SH-3 SH-3
  93. Hewlett-Packard Co. Hitachi SH-3 SH-3
  94. Hitachi Ltd. Hitachi SH-3 SH-3
  95. LG Electronics Inc. Hitachi SH-3 SH-3
  96. The revision of this port made for UnZip 5.51 does now also provide a project
  97. file for use with Microsoft's free "Visual C++ embedded 3.0" development system
  98. for Windows CE.
  99. Pocket UnZip should build out of the box. If you have just unzipped the
  100. Info-ZIP's UnZip sources, you should have a root directory with the core
  101. Info-ZIP files in it and several subdirectories under it for the various
  102. ports, one of which is the WinCE directory. The project files punzip.dsp
  103. are located in the subdirectory vc5 resp. vc6 below the wince directory.
  104. Open the punzip.dsp file from the subdirectory matching your Visual C++
  105. base version. The project file uses all the files in the WinCE
  106. subdirectory as well as the following files in the Info-ZIP root:
  107. api.c crypt.h globals.c process.c unzip.h
  108. consts.h ebcdic.h globals.h ttyio.c unzpriv.h
  109. crc32.c explode.c inflate.c ttyio.h unzvers.h
  110. crc32.h extract.c inflate.h unreduce.c zip.h
  111. crypt.c fileio.c list.c unshrink.c
  112. _______________________________________________________________________________
  113. Contacting the Authors
  114. _______________________________________________________________________________
  115. The Info-ZIP group is made up of dozens of people, past and present, who
  116. have devoted countless hours to providing the public with free and portable
  117. compression software. The author of the Windows CE port, Pocket UnZip, is
  118. Steve P. Miller.
  119. If you have questions, comments, suggestions, or bug reports concerning Pocket
  120. UnZip itself, you can write Steve Miller at:
  121. stevemil@pobox.com
  122. If you find a bug that appears to be more Info-ZIP related (i.e. the actual
  123. decompression part of Pocket UnZip), you can send mail to:
  124. Zip-Bugs@lists.wku.edu
  125. For all other general discussion type questions or comments, you can send mail
  126. to (as well as join) the following mailing list:
  127. Info-Zip@lists.wku.edu
  128. See the main UnZip README file for info on how to join the latter list.
  129. _______________________________________________________________________________
  130. Beginning with UnZip 5.51, the source distribution contains a second port for
  131. WinCE, providing a "command line UnZip tool" for batch processing on Windows CE
  132. systems.
  133. This port was contributed in September 2002 by:
  134. Simon Roberts
  135. IBM Global Services, EMEA
  136. Phone: (INT 44- 2392 )(UK 02392 ) 563937: Tie-line(UK): 25-3937
  137. Notes: Simon Roberts/UK/IBM@IBMGB
  138. Internet: Simon_Roberts@uk.ibm.com
  139. The tight integration of this contribution into the main UnZip distribution
  140. code required some reorganization and was carried out by the UnZip maintenance
  141. coordinator Christian Spieler.
  142. The build of the Win CE command line program requires compiling
  143. and linking together the following source modules:
  144. wince/wcemain.c main entry point
  145. unzip.c unzip command line interface
  146. crc32.c CRC-32 calculation
  147. crypt.c decryption support
  148. extract.c general archive extraction handling
  149. fileio.c internal I/O helper routines
  150. globals.c global communication resources setup
  151. list.c archive listing
  152. match.c wildcard pattern matching
  153. process.c general archives processing code
  154. ttyio.c interactive console I/O
  155. explode.c decompression for "Imploded" data (LZ77)
  156. inflate.c decompression for "Deflate" methods
  157. unreduce.c decompression for "Reduced" data
  158. unshrink.c decompression for "Shrunk" data (LZW)
  159. wince/intrface.cpp WinCE specific UnZip code
  160. wince/wince.cpp WinCE specific C RTL lib replacements
  161. These source modules depend on the following header files:
  162. zip.h wrapper for unzip.h used by some modules
  163. unzip.h main UnZip project header
  164. unzpriv.h extended defines for project internals
  165. globals.h global resource structures
  166. wince/wcecfg.h Windows CE specific configuration
  167. wince/wince.h WinCE C(++) library roundups
  168. consts.h global constant data
  169. crc32.h CRC-32 calculation interface
  170. crypt.h decryption interface
  171. ebcdic.h ASCII <--> EBCDIC translation
  172. ttyio.h console I/O interface
  173. unzvers.h version/release information
  174. wince/intrface.h public entities in wince/intrface.cpp