Re: CAB format
- From: "mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx>
- Date: Fri, 26 Jan 2007 23:24:08 GMT
You create a console application (in C++), and then ask (in a VB group!)why it
creates a console???
--
:) Yes, I think I might have worked that out. I didn't
realize there was a difference between a "Win32
Console Applcation" and a "Win32 Application".
It's a VC++ issue but I've been working on a VB
solution. I think I have it now. MS has a sample package
called "cabview" that provides barebones C++
code for using cabinet.dll to extract from CABs.
It was fairly simple to adapt that code. Ironically,
though, I only came across it after 3 days of searching,
and it was on a Chinese download site!
It may be that no one else really needs this, but
I'll be happy to share the code samples if anyone does.
What I came up with was a small commandline
EXE that extracts all of the CAB contents to curdir.
(My C++ is not good enough to do much more than that.)
It seems that the CDECL functions in cabinet.dll
are really the only realistic way to extract. I had fairly
good luck with parsing the actual binary structure of
CABs, which turned out not to be so hard. But the trouble
with that was that there are several variations on the
compression method that can be used. So I could
extract the compressed file streams but then I'd need
several decompression routines (and their support
files) to deal with the next step. With cabinet.dll the
compression type can be ignored.
For anyone who's interested, *don't waste your time
with SetupIterateCabinet*. It works beautifully, but
only on CABs compressed with MSZIP. On others
the extraction callback returns error 13 on the first file.
.
- Follow-Ups:
- Re: CAB format
- From: Karl E. Peterson
- Re: CAB format
- References:
- CAB format
- From: mayayana
- Re: CAB format
- From: mayayana
- Re: CAB format
- From: Karl E. Peterson
- CAB format
- Prev by Date: Can I access MySql with DAO ?
- Next by Date: Re: Can I access MySql with DAO ?
- Previous by thread: Re: CAB format
- Next by thread: Re: CAB format
- Index(es):
Relevant Pages
|