Quick Search for:  in language:    
WILL,NEED,Updated,01052003,Thanks,Matt,Hall,b
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,014,970. lines
 Jobs: 119. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
CString v1.5
By Ultimatum on 7/2


Tablature Pro
By Michael McMullen on 7/2


Click here to see a screenshot of this code!MSN Password Decryptor
By Muhammad Sufyan Ansari on 7/2

(Screen Shot)

Mp3 Paker
By Michael McMullen on 7/2


Suppress Run Time Script Errors
By Nuclear_1000G on 7/2


Click here to see a screenshot of this code!List Maker
By KBM-00 on 7/1

(Screen Shot)

Web Update Checker
By knormalnight on 7/1


A*Beginners API*
By Michael Nipper on 7/1


source hog v1.1
By Robert Justason on 7/1


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

ZLib Compression Wrapper (Update)

Print
Email
 
winzip icon
Submitted on: 1/9/2003 9:00:18 AM
By: Phantom Man 
Level: Intermediate
User Rating: By 41 Users
Compatibility:VB 6.0

Users have accessed this code 3293 times.
 
 
     Updated: 01/05/2003 - Thanks To Matt Hall For The buffer size Fix. <br> ZLib Compression Wrapper And Simple File Handling. Classes. Complete Zlib Wrapper Simple File Handling Wrapper These Classes Just Need To Be Droppped Into Your Project To Enable Super Fast String And File Compression. Also Supports Simple File Procedures. Enjoy. If You Like It And Find It Usefull Please Vote!!! YOU WILL NEED THE ZLIB.Dll For This To Work. Updated! Byte Compression And Decompression Has Been Optimized! Thanks To Everyone Who Has Voted So Far.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
1/9/2003 9:22:40 AM:Rob
Very Nicley Done Phantom Man.
Neat 
Code & Easy To Follow.
5 *****.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2003 11:38:48 AM:Martin
Nice job, Gary. (Little typo in cmdTest 
Case is =1 tmp compress.txt instead of 
tmpcompress.txt) All the best for 2003 
may all your bugs be little ones.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2003 12:03:48 PM:
Nice Code, good commenting! Keep up the 
work 5*4u
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2003 12:45:10 PM:Phantom Man
Thanks to Martin For Noticing My
Type 
Error!
The Code Has Now Been 
Ammended!
Regards 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2003 2:59:11 PM:Derek Jonstone
This has to be the best Compression 
Wrapper on PSC.
Very well coded and 
easy to implement.
Congratulations. 
5 Balls only - would give 10 if I 
could.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/10/2003 4:35:24 AM:CodeFester
your submissions runneth over.  
Excellent! (as usual);  5 stones from 
this camp.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/10/2003 8:19:23 AM:Peers Longfield
Phantom Man this is outstanding and 
deserves more than 5 globes.
It's 
not often I vote but this deserves it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/11/2003 6:44:04 AM:JB
Excellent Code!
5 Thingies.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/11/2003 10:01:51 PM:Martijn B
Really good!
I'm really happy with the 
compress2 function. Nice file class 
too!
10 globes. (I'll let someone else 
vote too!)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/13/2003 4:17:10 AM:Lance Freshman
Expertly done.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/13/2003 1:51:30 PM:Leveller
You da man.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/14/2003 2:55:51 AM:Michael P. Schieferer
The *.zip file i created with this 
wrapper (best compression) is an 
invalid *.zip file. i can't open it wit 
winzip or winrar! anyone knows an 
solution???
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/14/2003 4:21:27 AM:Phantom Man
Please Note..
That this code is a 
compression wrapper and NOT a zip 
wrapper.
If you want a zip wrapper 
control thats free and compatable with 
winzip etc. Email Me
Regards 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/14/2003 4:35:49 AM:Graham Bell
Excellent piece of coding.
By far 
the best compression wrapper here on 
PSC.
5 Globes for you.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/14/2003 4:05:30 PM:Bomber
cool!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/14/2003 4:07:54 PM:Phantom Man
A Big Thankyou To Everyone Thats 
Voted!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/15/2003 10:45:00 AM:Josie M
No a big thankyou.
Super 5 *****
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/15/2003 2:14:30 PM:R CastleMane
Very nice compresion wrapper phantom 
man.
Also a very impressive file 
wrapper!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/16/2003 4:24:05 AM:Peter W Lowarth
May i congratulate you on a fine 
Class!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/18/2003 7:29:57 AM:Scorpion King
Nice!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/20/2003 4:29:19 AM:Victoria Dalane
Easy to implement and understand.
Very 
neat code.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/24/2003 4:13:12 PM:Daniel Valiquette
Just one one.... Excellent!
Thx for 
the little help!
5 *****
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/24/2003 4:14:12 PM:Daniel Valiquette
Just one word.... Excellent!
Thx for 
the little help!
5 *****
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/28/2003 2:46:29 PM:
Very good code!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/28/2003 5:05:08 PM:Sven Taute
great code!
5 globes from me!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/24/2003 10:57:18 AM:M a t t = H a l l
Excellent work, well done.
5*
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/28/2003 12:21:43 PM:M a t t = H a l l
I think i've found a problem with the 
DecompressString method of the class... 
If you compress a string using this 
method, then destroy the mobjCompress 
object (Set mobjCompress = Nothing), 
then create a new instance of it (Set 
mobjCompress = New cCompress), 
decompressing the string I compressed 
earlier does not return correctly. It 
seems your code remembers the 
OriginalSize of the compressed string 
in the OriginalSize property, but once 
you destroy the class object, this 
value is of course destroyed also. You 
have also made the OriginalSize 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/28/2003 12:22:03 PM:M a t t = H a l l
property Get only, meaning you cannot 
set this property from outside the 
class. For some reason, a buffer size 
of 12 or so is always used to store the 
decompressed string into, resulting in 
truncated results. I'll look into it 
for you and mail you the fix if you 
mail me back. 
matt@andrews-computers.com. This is 
only a small mistake, but sadly brings 
the class to its knees! Not a hard one 
to fix, so mail me back and get a fixed 
version posted! Regards, Matt Hall.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/15/2003 6:46:23 PM:
Very good; Thanks! 
ATTENTION: For 
all the ZLIB-Fans: 
There is a 
security vulnerability in zlib 1.1.3 
and A new version of zlib has been 
released, zlib 1.1.4.
See @ 
http://www.gzip.org
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/23/2003 10:45:34 PM:MNetwork
Hi, I would just like to know what 
version of ZLib this uses and where I 
could download that exact version.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.