News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

zlib problem

Started by jj2007, November 29, 2010, 12:14:51 AM

Previous topic - Next topic

ToutEnMasm


For fun,the attached file divide the size of the compressor by 1000.
In fact,he use the IMakeCab interface.
Usage is very simple:
He ask for a directory and that all.
The compressed file is put in the upper directory and get the name of the compressed directory.
Relative path are added to the compressed files.

jj2007

All *.asm files in \masm32\m32lib:
177,216 WinZip max portable
72,594 CabIt
53,773 MasmBasic ZipFiles


Not bad for such an old format... but WinZip's performance is a shame :red

ToutEnMasm


Old things can surprise...
And it can be easily added to another program...
Source code can be found but only in french.

oex

Quote from: ToutEnMasm on December 05, 2010, 01:26:22 PM
Source code can be found but only in french.

Uh oh :lol not French logic :bg
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

dedndave


Antariy

Quote from: ToutEnMasm on December 05, 2010, 01:26:22 PM
Old things can surprise...
And it can be easily added to another program...
Source code can be found but only in french.

Of course, that's woud be nice to see sources (if it is available).

ToutEnMasm

Ok,here are the source code
There is two directory
First directory show how to translate a typelib for masm
   -get a .idl file with Oleview
   -Translate it for the C++ with midl (get .h and a .c)
   -Translate .h .c for masm with the translator downloadable
    in the masm32 forum,windows.inc subforum.
Second directory is the source code itself
   The .asm show the needed loop for the Imakecab interface
   The Interface use only VARIANT,and it's a good sample
   for that.
   The include files are all designed to work in various prog.
   So there is some code not used.



ToutEnMasm

Useful trick,rename the .cab in .zip,he can be unpack by other compressor,7zip made it.
The .zip is smaller like that (35%).

brethren

i've found the cabinet api reference, it looks like plain old C so it should be no problem to create .inc files.
http://msdn.microsoft.com/en-us/library/ff797923%28v=VS.85%29.aspx

also there is something called the CABSDK that may be worth a look although its no longer available to download from microsoft

ToutEnMasm


The cab sdk couldn't be found now,it is part of the windows installer now who is part of the windows sdk.
There is two headers of interest,fci.h and fdi.h (compression and decompression) both are translate in the "ready to use sdk" in the masm32 forum,windows.inc subforum.


brethren

thanks, i actually have your translated sdk somewhere on my hdd. gonna have a look at that now :U

Antariy

Quote from: Antariy on December 06, 2010, 12:54:45 AM
Of course, that's woud be nice to see sources (if it is available).

Quote from: ToutEnMasm on December 06, 2010, 07:57:46 AM
Ok,here are the source code

Thanks! :bg

fearless

There appears to be a static library version of zlib included with the updatechecker addin source example for masm projects in KetilO's RadASM v3.x distribution.
ƒearless

dedndave

i ran across this one....
it's open source (Pascal  :P )

http://www.peazip.org/peazip-free-archiver.html

might find some useful info