Overview
Code: Select all
The purpose of PureCAB is to handle CAB files [MS-Cabinet].
Note : This library does not support InstallShield archives [also CAB extension].
PB4.xx : http://gnozal.ucoz.com/PureCAB_.htm
Example
Code: Select all
; Compression callback
Procedure.l MyCustom_Compression_StatusCallBack(Filename.s, PerCent.f)
; Filename : current processed filename
; PerCent : current compression progression [0-100%]
Debug "Packing " + Filename + " - " + StrF(PerCent, 2) + "%"
EndProcedure
; Set compression callback
PureCAB_SetCompressionCallback(@MyCustom_Compression_StatusCallBack())
; Create Archive
Handle = PureCAB_Create("c:\PureBasic410\Program\test.cab")
If Handle
PureCAB_Compress(Handle, "c:\WINDOWS\Coffee Bean.bmp", "Another Name.bmp")
PureCAB_Compress(Handle, "c:\PureBasic410\Help\Win32.hlp")
PureCAB_Compress(Handle, "c:\WINDOWS\FeatherTexture.bmp")
PureCAB_Compress(Handle, "c:\WINDOWS\Gone Fishing.bmp")
PureCAB_Compress(Handle, "c:\PureBasic410\Help\SOCK2.HLP")
PureCAB_Close(Handle)
Debug "Done"
Else
Debug "Failed creating cab"
EndIf
Only available for Purebasic Windows x86
PB4.0x-4.2x : http://gnozal.ucoz.com/PureCAB_.zip
PB4.3x : http://gnozal.ucoz.com/PureCAB_430.zip
PB4.4x : http://gnozal.ucoz.com/PureCAB_440.zip
PB4.5x : http://gnozal.ucoz.com/PureCAB_450.zip
PB4.6x : http://gnozal.ucoz.com/PureCAB_460.zip
PB5.0x : http://gnozal.ucoz.com/PureCAB_500.zip