Results 1 to 6 of 6

Thread: Compile Info-ZIP Unzip Win32 DLL?

  1. #1
    Joost
    Guest

    Angry Compile Info-ZIP Unzip Win32 DLL?

    I'm using the InfoZIP Unzip Win32 DLL's http://www.info-zip.org/ (unzip32.dll, unzip32-static.dll) for my software, but I need to change a few lines of code, so I cannot use to binary version.

    I'm trying to compile it, but I have no idea how I should do it. MS Visual C++ does not work. Does anyone know how I can compile the DLL and which compiler I have to use?

    Thanks.

  2. #2
    jim mcnamara
    Guest
    From the readme file:

    Questions about zlib should be sent to <[email protected]>, or to
    Gilles Vollant <[email protected]> for the Windows DLL version.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Rename this to .dsp and there ya go

    This works with 1.1.3
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Oh okay my bad...This is only the zLib DLL - you'll need to add the code for the unzipping yourself.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Joost
    Guest
    I think I solved the problems. The MS C++ files are saved in UNIX text format by InfoZIP, and because UNIX used different Enter-chars, MS C++ cannot read them. Now I converted the files in the Windows format, and it works.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Really? Technically it shouldn't make any difference, since anything on Windows will interpret "\n" (newline) as what it is.

    Under DOS/Windows, lines are terminated by "\r\n" (carriage return and newline) so they must be translated back again, unless the programmers decided to specifically check for "\r\n" rather than using the runtime library.

    This is why you can open as text or binary - under text mode, "\r\n" is converted to "\n" when you read it.

    That said, if converting them worked then that's most likely the problem, and this was just an interesting but utterly irrelevant bit of info

    PS: I didn't change my files and they worked fine first time...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

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



Click Here to Expand Forum to Full Width