graph100 wrote:
Do you not intend to extend your work to a Pure7Zip or something like this ? This would be of even greater use !
No, although the library uses the LZMA algorithm, which is one of many supported by 7-ZIP, it does no provide support for 7-ZIP archives.
Personally, for handling *.7z files I use
PureWCX / PureWCX-U +
7-ZIP.wcx.
Code example :
Code:
*SevenZIP = PureWCX_U_LoadPlugin("c:\WinNT\WinCmd\7-Zip\7zip.wcx")
If *SevenZIP
hArc = PureWCX_U_OpenArchive(*SevenZIP, "c:\Purebasic\wcx\Test-pack.7z")
If hArc
While PureWCX_U_GetFileInfo(*SevenZIP, hArc, @HeaderData.PureWCXFileInfo)
Debug "Archive name : " + HeaderData\ArcName
Debug "Archived file : " + HeaderData\Filename
Debug "Archived file packed size : " + Str(HeaderData\PackSize)
Debug "Archived file unpacked size : " + Str(HeaderData\UnpSize)
PureWCX_U_NextFile(*SevenZIP, hArc)
Wend
PureWCX_U_CloseArchive(*SevenZIP, hArc)
EndIf
PureWCX_U_FreePlugin(*SevenZIP)
EndIf
End
Another possibility might be
7-ZIP32.DLL, but the API is in Japanese and the English documentation seems way behind the Japanese version. I believe there are some sources posted in this forum.