Page 1 of 1
Posted: Thu Mar 13, 2003 7:35 am
by BackupUser
Restored from previous forum. Originally posted by Denis.
Hi all,
I'd like to write an ASM lib (for PB) to pack/unpack files to Zip compression (i wonder if i'm able to do that ?).
Two questions :
1)What about the rights of this format ? Is it free or not ?
2)Where can i found all i need to write this lib (compression format) ?
Did anyBody here already do that ?
Thanks for your help
For french PB coders, if you know french sites about, please tell me.
Denis

Posted: Thu Mar 13, 2003 8:26 am
by BackupUser
Restored from previous forum. Originally posted by fred.
IHMO, better do it in C (with LCC) as the sources are available. It's called 'zlib', just search on the web.
Fred - AlphaSND
Posted: Thu Mar 13, 2003 9:59 am
by BackupUser
Restored from previous forum. Originally posted by El_Choni.
For the format, look at
http://www.wotsit.org. Fred's right, but if you can do it in good optimized assembly (and you have time to do it), you'll make it faster. Good luck anyway.
El_Choni
Posted: Fri Mar 14, 2003 8:03 am
by BackupUser
Restored from previous forum. Originally posted by Denis.
Thanks Fred and El_Choni for infos.
Denis

Posted: Fri Mar 14, 2003 8:17 am
by BackupUser
Restored from previous forum. Originally posted by freak.
A Lib for Zip support would be really great!
I've tried to use the dll Version of 'zlib', for some time now, but
as the Manual is quite short, and I am no C guy, I failed, and now have
to call a CommandLine Version of a Zip Tool instead.
If you would do a Lib, I would be your first user
Timo
Posted: Fri Mar 14, 2003 2:31 pm
by BackupUser
Restored from previous forum. Originally posted by CoderLaureate.
I've done some Zip File manipulation using Java. I haven't worked on a C++ project, in a couple years. Let me take a look at the ZLIB stuff, and see what I can come up with.
-Jim
---------------------------------------------
AMD Duron 950Mhz/Windows XP Pro
http://www.BlueFireStudios.com
Posted: Fri Mar 14, 2003 3:36 pm
by BackupUser
Restored from previous forum. Originally posted by CoderLaureate.
Holy crap!
I'm looking at the documentation for the ZLIB compression library. Browsing through the source code. This uses a lot of terminology from the old Intel segmented memory 286 days.
It'll take some time to figure some of this stuff out, and I'm a little busy right now.
-Jim
---------------------------------------------
AMD Duron 950Mhz/Windows XP Pro
http://www.BlueFireStudios.com
Posted: Fri Mar 14, 2003 3:46 pm
by BackupUser
Restored from previous forum. Originally posted by GPI.
Maybe this can help
http://w3.one.net/~kevinw/VB/d_DLL.htm
there is a dll, which is useable in VB, so PB should not have any problems.
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
Posted: Sat Mar 15, 2003 9:42 am
by BackupUser
Restored from previous forum. Originally posted by Num3.
This is what i've been able to do so far in Zlib:
text$=InputRequester("Zlib Dll","Please type some text To compact","")
If OpenLibrary(0, "zlib.dll")
Dim outtext.b (Len(text$)+20)
size.l=Len(text$)+20
*sizepointer=@size.l
; *textinpointer = @textin()
*textinpointer = @text$
*outtextpointer = @outtext()
MessageRequester("ZLIB DLL", "Uncompressed Lenght:" + Str(size), 0)
If CallFunction(0, "compress", *outtextpointer,*sizepointer , *textinpointer, Len(text$))
MessageRequester("ZLIB DLL", "Compressed Lenght:" + Str(size), 0)
If AllocateMemory(0,size)
CopyMemory(*outtextpointer,UseMemory(0),size)
EndIf
If OpenFile(0, "c:\test.bulk")
WriteData(UseMemory(0), size)
CloseFile(0)
EndIf
EndIf
MessageRequester("ZLIB DLL", "Compressed Lenght:" + Str(size), 0)
MessageRequester("ZLIB DLL", "The text you typed was:" + PeekS(*outtextpointer), 0)
EndIf
Hi got the hole tecnical data on it.... Anyone want's it... Send me a mail...
--
Kind Regards
Rui Carvalho
Old programmers never die... They branch into a subroutine...