Or find it right here at:
http://www.experts-exch
I'm trying to create cabinet file in Visual Basic 6.
I got the Cabinet.dll, but i did not find any reference on how I could make it work with vb6. (Found some on .NET, but it's an old project where I have to add this feature, so I really need some VB6 references)
I found this question, but the link provided is broken.
http://www.experts-exchang
It refers to API call. But it will be easier I could have a .bas to do the interface or just some guideline on how to create those API calls.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Or find it right here at:
http://www.experts-exch
I need it programatically access the Cabinet.dll file though API call, or something like that.
First link is about manually creating a cab file from the install wizard. This is Irrelevant.
Second link i more relevant, but all link seem to be broken (again). Nice try.
Also please note that i dont want to do ti from a shell comand. I know how to do that. I need to use the Cabinet.dll file.
http://www.jsware.net/jswa
Creating and unpacking CAB files is often useful from VB, but VB is not capable of using the system file, cabinet.dll, that provides the functionality.
Since VB cannot call the CDECL functions in cabinet.dll without a lot of acrobatics, the solution here is a very simple C++ DLL, made in VC6. It provides the basic functionality needed to extract from and create CAB files programmatically using cabinet.dll. This download includes a .CPP, .H and .DEF file. In combination with the LIB and header files from the Microsoft CAB SDK it provides everything needed to build your own DLL for use from VB.
If you don't want to deal with C++ code, see the jsCAB download on the VBScripts page. It provides a pre-made ActiveX DLL for use with VBScript, as well as a compiled standard DLL for use from VB.
Download vbcab.zip (9 KB)
Here is some useful info from http://www.jsware.net/jswa
Creati
If you look online for VB code you will find several examples that use SetupIterateCabinet, from setupapi.dll, for extracting from CAB files. One example is a project named Cab Explorer. There was also an in-depth article detailing the use of SetupIterateCabinet in the November, 2000 issue of VBPJ, by one Ken Getz. But SetupIterateCabinet doesn't really work! And none of the available code or articles bothers to mention that. SetupIterateCabinet can extract only from CAB files compressed using the MSZIP format. It fails if the CAB was compressed with the LZX or QUANTUM method. And LZX compression is actually fairly common.
Other operations, like listing files in a CAB, can be done by directly parsing the CAB file header. So learning about the setupapi.dll functions is probably a waste of time.
Since VB cannot call the CDECL functions in cabinet.dll without a lot of acrobatics, the solution here is a very simple C++ DLL, made in VC6. It provides the basic functionality needed to extract from and create CAB files programmatically using cabinet.dll. This download includes a .CPP, .H and .DEF file. In combination with the LIB and header files from the Microsoft CAB SDK it provides everything needed to build your own DLL for use from VB.
If you don't want to deal with C++ code, see the jsCAB download on the VBScripts page. It provides a pre-made ActiveX DLL for use with VBScript, as well as a compiled standard DLL for use from VB.
Business Accounts
Answer for Membership
by: VBClassicGuyPosted on 2009-09-29 at 07:45:57ID: 25449598
Maybe this?:
http://forums.devx.c om/showthr ead.php?t= 63356