dcsimg
Results 1 to 7 of 7

Thread: [RESOLVED] how to get crc from zip

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2019
    Posts
    142

    Resolved [RESOLVED] how to get crc from zip

    i have the code to open zip and se its contents but how do i check each file crc?
    am not at home now so please share what you can thank you.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    18,554

    Re: how to get crc from zip

    Computing the crc for a file is a well-established algorithm. You can many examples on this site. While your aware from home, you may want to try this google search: crc file site:vbforums.com
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2019
    Posts
    142

    Re: how to get crc from zip

    Quote Originally Posted by LaVolpe View Post
    Computing the crc for a file is a well-established algorithm. You can many examples on this site. While your aware from home, you may want to try this google search: crc file site:vbforums.com
    thanks

  4. #4
    Frenzied Member wqweto's Avatar
    Join Date
    May 2011
    Posts
    1,621

    Re: how to get crc from zip

    JFYI, the original cZipArchive class has a public CalcCrc32Array function that is based on libdeflate's crc32_slice4 implementation and I'm 99% sure this can beat any VB6 implementation in benchmarking (left 1% for if Olaf chimes in:-)).

    cheers,
    </wqw>

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Posts
    20,720

    Re: how to get crc from zip

    If you make use of zlibwapi.dll you can get the CRC along with the Name (and other things if you really want them) of each item.

    Here's a wrapper class for the purpose.

    Name:  sshot.png
Views: 51
Size:  3.2 KB

    You'll need a version of zlibwapi.dll in the EXE folder, or somewhere along the paths in the PATH environment variable, or a path spelled out in a manifest, etc. Somewhere that the DLL search can find it.
    Attached Files Attached Files

  6. #6
    Lively Member
    Join Date
    Apr 2014
    Location
    Munich, Germany
    Posts
    127

    Re: how to get crc from zip

    The easiest way that I'm aware of is described here.

    Wolfgang

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2019
    Posts
    142

    Re: how to get crc from zip

    Quote Originally Posted by dilettante View Post
    If you make use of zlibwapi.dll you can get the CRC along with the Name (and other things if you really want them) of each item.

    Here's a wrapper class for the purpose.

    Name:  sshot.png
Views: 51
Size:  3.2 KB

    You'll need a version of zlibwapi.dll in the EXE folder, or somewhere along the paths in the PATH environment variable, or a path spelled out in a manifest, etc. Somewhere that the DLL search can find it.
    thank you so much.

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