SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Conversion from PKWare Data Compression Library

Last post 02-13-2008 9:02 PM by JohnReilly. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-07-2008 10:55 PM

    Conversion from PKWare Data Compression Library

    Hello,

     I have a program that compresses single files using an old version of the pkware Data Compression Library V1.11. Its so old its on 5 1/4 floppy!

     Anway, I want to use SharpZipLib to compress and uncompress my files now, but would really like to not have to go through a conversion process.

    I have several hundred files with almost a thousand users of my system. To go through a conversion would be a pain.

    What is basically happening is that the old dll is calling the libraries implode and explode function.

    About the only thing I have control over is the following for implode

    /* Initialize CRC */

    Param.CmpPhase = 1;

    Param.CRC = (
    unsigned long) -1;

    type = CMP_ASCII; /* Use ASCII compression */

    dsize = 4096; /* Use 4K dictionary */

    implode(ReadData, WriteData, WorkBuff, &Param, &type, &dsize);

     

    For Expload it is pretty much the same

    /* Initialize CRC */

    Param.CmpPhase = 0;

    Param.CRC = (
    unsigned long) -1;

    puts("Calling Explode");

    Error = explode(ReadData, WriteData, WorkBuff, &Param);

     

    Does this translate at all to sharp zip lib somewhere? I've been trying to get something to work for hours now with no luck.

    Thanks in advance.

    Ken

  • 02-13-2008 9:02 PM In reply to

    Re: Conversion from PKWare Data Compression Library

     A conversion is likely to be the only way I think.  #Zip wont handle imploding or custom compression alrgorithms.

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.