dcsimg
Results 1 to 8 of 8

Thread: RC5 FastLZDecompress method

  1. #1

    Thread Starter
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    294

    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.
    Last edited by Daniel Duta; Jun 12th, 2018 at 05:52 AM.
    "VB code is practically pseudocode" - Tanner Helland
    "When you do things right, people won't be sure you've done anything at all" - Reed Kimble

  2. #2
    PowerPoster
    Join Date
    Jun 2013
    Posts
    3,737

    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. #3

    Thread Starter
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    294

    Re: RC5 FastLZDecompress method

    Thank you very much, Olaf. I will try to consider other possibilities.
    "VB code is practically pseudocode" - Tanner Helland
    "When you do things right, people won't be sure you've done anything at all" - Reed Kimble

  4. #4
    PowerPoster
    Join Date
    Jun 2013
    Posts
    3,737

    Re: RC5 FastLZDecompress method

    Quote Originally Posted by Daniel Duta View Post
    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. #5

    Thread Starter
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    294

    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.
    Last edited by Daniel Duta; Jun 13th, 2018 at 02:40 AM.
    "VB code is practically pseudocode" - Tanner Helland
    "When you do things right, people won't be sure you've done anything at all" - Reed Kimble

  6. #6
    Fanatic Member wqweto's Avatar
    Join Date
    May 2011
    Posts
    719

    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:
    Quote Originally Posted by 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. #7

    Thread Starter
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    294

    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
    Name:  activex error.PNG
Views: 45
Size:  4.6 KB
    "VB code is practically pseudocode" - Tanner Helland
    "When you do things right, people won't be sure you've done anything at all" - Reed Kimble

  8. #8
    Fanatic Member wqweto's Avatar
    Join Date
    May 2011
    Posts
    719

    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


Click Here to Expand Forum to Full Width