PureBasic Interface to WinRAR

Share your advanced PureBasic knowledge/code with the community.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to UnRAR (WinRAR)

Post by JHPJHP »

The current examples and includes were created directly from: references/unrar.h, references/unrar.c.
- ExtractArchive.pb: extracts files from an RAR archive
- ListArchive.pb: lists information from files contained within an RAR archive

I'll be adding a new example when time permits that extracts an RAR archive to memory.

-------------------------------------------------------------------

Added two test files:
- testfiles/Archive.rar
- testfiles/Password_JHPJHP.rar: password protected (JHPJHP)
Last edited by JHPJHP on Tue Apr 10, 2018 6:17 pm, edited 11 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to UnRAR (WinRAR)

Post by JHPJHP »

Updated:
- added 1 example
-- MemoryArchive.pb: displays images extracted into memory from an RAR/CBR archive, and saved to an SQLite database
- added 1 test file
-- FuturesEnd_FCBD.cbr: comic book archive

MemoryArchive.pb: is a basic example demonstrating one method of dealing with archive files in memory; limited to images.
- FuturesEnd_FCBD.cbr (Free Comic Book of the DAY): 43.3 MB

-------------------------------------------------------------------

Updated: MemoryArchive.pb
- images are sorted using a StructureArray before being displayed
- added the ability to change between images using the less-than ( < / > ) greater-than keys
Last edited by JHPJHP on Mon Feb 09, 2015 1:35 am, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to UnRAR (WinRAR)

Post by JHPJHP »

Updated:
- renamed 1 example
-- MemoryArchive.pb to MemoryArchive1.pb
- added 1 example
-- MemoryArchive2.pb: displays images extracted into memory from an SQLite database

-------------------------------------------------------------------

Updated the example: MemoryArchive2.pb
- modified the code to load the database images to memory before displaying them
- database images are not modified from the original files, resizing occurs when they are processed to memory
Last edited by JHPJHP on Mon Feb 09, 2015 3:04 am, edited 4 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to UnRAR (WinRAR)

Post by JHPJHP »

Updated:
- MemoryArchive1.pb and MemoryArchive2.pb have been restructured, optimized for performance and giving more control to the user.
-- MemoryArchive1.pb: creates a unique SQLite database file from archived images first loaded into memory
-- MemoryArchive2.pb: allows the user to choose an SQLite database, loading the archived images into memory
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to UnRAR (WinRAR)

Post by JHPJHP »

Updated:
- replaced the binaries with the latest versions
- updated documentation and references
Wolfram
Enthusiast
Enthusiast
Posts: 567
Joined: Thu May 30, 2013 4:39 pm

Re: PureBasic Interface to WinRAR

Post by Wolfram »

I get an error "structure not found: NUMBERFMT".
Where is this structure?

PS: I'm on OSX
macOS Catalina 10.15.7
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to WinRAR

Post by JHPJHP »

Hi Wolfram,

Sorry, Windows only.

---------------------------------------

Updated:
- latest binaries (2018-12-11)

NB*: I did not do must testing, please let me know of any issues.
Locked