1. ## RC5 FastLZDecompress method

If someone is familiar with RC5 library I want to know if FastLZDecompress method is suitable to decompress a file archived in 7z format. My prices.7z file has inside some subfolders and I would like to get this structure as it is without to parse any csv file. Thank you.

2. ## Re: RC5 FastLZDecompress method

No, the built-in RC5 compression/decompression methods only work on a "single BLOB" (or Stream) -
not on Archives (neither *.zip, nor *.7z are supported).

Olaf

3. ## Re: RC5 FastLZDecompress method

Thank you very much, Olaf. I will try to consider other possibilities.

4. ## Re: RC5 FastLZDecompress method

Originally Posted by Daniel Duta
Thank you very much, Olaf. I will try to consider other possibilities.
For *.7z archives you could try wqwetos Vszlib here: https://github.com/wqweto/VszLib

Olaf

5. ## Re: RC5 FastLZDecompress method

That solution requires 2 libraries, one dll for deployment and a tlb for IDE but latest library I have not succeeded to register it with regtlib.exe.

6. ## Re: RC5 FastLZDecompress method

You don't need the typelib if you are not going to load the library sources. For your purposes just add a reference to VszLib.dll (in Bin folder) and try to figure out how to extract your .7z archive (see README).

Here are the relevant quotes from project's README:
Using component

Register Bin\VszLib.dll with regsvr32.exe (or VB6 IDE) and add a reference (Project | References...) in your project to 7-zip VB6 Helper 1.0. You only need to redistribute Bin\VszLib.dll with your application. . .
This is not 100% correct. You'll need to redistribute the original 7z.dll (or lightweight 7za.dll) to handle the actual compression -- VszLib is just a wrapper ActiveX DLL.

And some code for archive extraction
Code:
With New cVszArchive
.OpenArchive "prices.7z"
.Extract "c:\path\to\extract_folder"
End With
cheers,
</wqw>

7. ## Re: RC5 FastLZDecompress method

Thank you for your reply, Vladimir. Very useful your sources on GitHub but for some reason I have no luck with this library. Even the vszlib.dll is right registered and referenced I get each time an error. What could be wrong with it ?
Code:
Option Explicit
Private cVszArchive As VszLib.cVszArchive

Private Sub Command1_Click()
Set cVszArchive = New cVszArchive
End Sub

8. ## Re: RC5 FastLZDecompress method

Then you are probably not going to be able to use this library, unfortunately.

cheers,
</wqw>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

Featured