|
-
Nov 14th, 2001, 03:59 PM
#1
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.
-
Nov 14th, 2001, 05:50 PM
#2
-
Nov 14th, 2001, 05:56 PM
#3
Monday Morning Lunatic
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
-
Nov 14th, 2001, 05:56 PM
#4
Monday Morning Lunatic
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
-
Nov 15th, 2001, 10:15 AM
#5
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.
-
Nov 15th, 2001, 02:18 PM
#6
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|