UnZip Wrapper for Borland Delphi
"Gerke Preussner" <j3rky-PwarcJYbHk0y9RghKg/[email protected]> Sun, 14 Mar 2004 19:05:27 +0100
| Newsgroups | gmane.comp.archivers.info-zip |
|---|---|
| Message-ID | <009b01c409ee$eea89ab0$6501a8c0@MOBILEHEADCRASH> |
I wrote a Delphi unit to wrap the API of UnZip for Windows (unzip32.dll). It allows static as well as dynamic linking. The wrapper and a copy of the readme can be downloaded here: http://www.gerke-preussner.de/soft/libinfozip/delphiunzip.zip http://www.gerke-preussner.de/soft/libinfozip/readme.txt It is about 335kB in size and comes with a well documented demo application and test data. Feel free to add this contribution to the UnZip distribution. Note: So far I was unable to make use of the API functions Wiz_SetOpts() and Wiz_SingleEntryUnzip(). They both cause an access violation in unzip32.dll when called. I'm not too familiar with the internals of UnZip, but it looks like the global variables are not initialized properly (the CONSTRUCTGLOBALS() directive takes care of this for all other API calls). Since there's not enough memory allocated for the 'G' variable, assigning some properties crashes the DLL. Luckily, these two functions are not really important to work with UnZip (do they have a purpose outside the DLL at all or where they exported by accident?). However, if anyone got a hint about what I'm missing to make them work properly, I'd be glad to update the wrapper and show the correct usage in the demo. Regards, Gerke Preussner -- headcrash industries email: j3rky-PwarcJYbHk0y9RghKg/[email protected] www: http://www.gerke-preussner.de *** TacticalOps Coder, Designer & Mapper TacticalOps Germany PR & Community Kamehan Studios, Paris, France email: [email protected] sick of playing Counterstrike? try: http://www.tactical-ops.to and: http://www.tactical-ops.de