CAB/UnCAB DLL

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

Anyone have any CAB/UnCAB DLL and code to use it? I am getting desperate :( (Many problems would be solved by such a solution. The way I do it now causes far too many problems)

We are Dyslexic of Borg, prepare to have your ass laminated!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Hope tjis could help:

http://www.planetsourcecode.com/vb/scri ... 1&B1=Quick Search&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&txtCriteria=CAB COMPRESS

Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

Thanks but....I don't speak VB and reading it is all greek to me :)


We are Dyslexic of Borg, prepare to have your ass laminated!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Let me see if tomorrow i can see if this codes offers some alternative that could be translated to PB, im thinking now that it may call activex and in this case wont be usefull for you, but let see... but tomorrow my friend, its 3:07 a.m. here : )



Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

Ricardo, what is sleep??? Foreign concept for me :)

We are Dyslexic of Borg, prepare to have your ass laminated!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Hi,

The VB code uses an commandline executable from Microsoft to CAB a file, the executable name is MAKECAB (150K) and its from Microsoft. If you want me to send it to you just ask it.
To UNCAB the use a VB dll named VB6STKIT.DLL using the next call:
Declare Function ExtractFileFromCab Lib "vb6stkit.dll" (ByVal Cab As String, ByVal File As String, ByVal Dest As String, ByVal iCab As Long, ByVal sSrc As String) As Long

Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

AFAIK, you could also use cabextract.exe to extract the cab.

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Makecab.exe info:

Microsoft (R) Cabinet Maker - Version (32) 1.00.603.4 (06/25/98)
Copyright (c) Microsoft Corp 1993-1998. All rights reserved.

MAKECAB [/V[n]] [/D var=value ...] [/L dir] source [destination]
MAKECAB [/V[n]] [/D var=value ...] /F directive_file [...]

source File to compress.
destination File name to give compressed file. If omitted, the
last character of the source file name is replaced
with an underscore (_) and used as the destination.
/F directives A file with MakeCAB directives (may be repeated).
/D var=value Defines variable with specified value.
/L dir Location to place destination (default is current directory).
/V[n] Verbosity level (1..3).

I TRY IT USING:

Makecab /f Temp.txt

and it works

Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

Using their EXE's causes massive resource problems, they leak memory like crazy here. I catalogue over 23,000 files using EXTRACT.EXE and RunProgram. It's slow, inneficient and causes me to run out of resources after 8,000 files and I have to reboot.

I need a DLL solution which will be faster, more control and no memory leak that way. Also less overhead.

We are Dyslexic of Borg, prepare to have your ass laminated!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by FloHimself.

you could try out this package:
http://download.lightship.co.jp/bin/cab32098.exe

it contains a .dll and a .lib with .h file. the api documentation is in japanese, but maybe the header file is enough.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

Ricardo, hope you speak Japansese :) (mine is veeeeeery rusty) :):)


We are Dyslexic of Borg, prepare to have your ass laminated!
Post Reply