Solved

File compression

Posted on 1999-01-25
4
200 Views
Last Modified: 2010-05-03
Anyone know of any VB algorithms or code snipits that can considerably compress/restore a large file (the smaller and faster it is, the better)?  I am making a prgram that will eventually be creating some pretty heafty files so any help would be appreciated.  Thanx.
0
Comment
Question by:zabman
4 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1470718
Waty asks this question a while ago and the only thing he got was some pointers.
There is no fast way to compress in VB because of a lack of bit manupulation functions.

Here is a good control that does it
http://www.cgvb.com/links/lpage.boa/FILE
0
 
LVL 14

Expert Comment

by:waty
ID: 1470719
The only solution under vvb, is using 3rd OCX/DLL, of shelling to PKZip. For none of those solutions was acceptable.
0
 
LVL 4

Accepted Solution

by:
anzen earned 100 total points
ID: 1470720
Such a code snippet is difficult to post here, but If You want to use or study some really good compression code i suggest You to jump to this URL http://www.winimage.com/zLibDll/ there You'll find the Win DLL version of a compression library called Zlib (bin and sources) together with a working VB module to use it from Visual Basic, the library uses Huffmann, LZW and RLE algos to accomplish the max compression it can and I've found it really useful and well written

I Hope this helps ...

Bye

0
 

Author Comment

by:zabman
ID: 1470721
Thanks for the help!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question