PureBasic Interface to WinRAR

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

PureBasic Interface to WinRAR

Post by JHPJHP »

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

Download PureBasic Interface to WinRAR from My PureBasic Stuff

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

Announcements
PureBasic Interface to OpenCV
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB Image Steganography
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Chromium Edge WebGadget
IAccessible Interface
Stitch Images: SIFT
OldSkool Fire Effect
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Large Image Viewer
Barcode Generator
Google Translate Service
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management

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

INCLUDED
- 4 examples, 4 includes

- UnRAR 5.61.100.2835:
-- unrar.dll, unrar.lib, unrar_nocrypt.dll, unrar_nocrypt.lib
-- unrar64.dll, unrar64.lib, unrar64_nocrypt.dll, unrar64_nocrypt.lib
-- 19 HTM files, unrar.h, unrar.c, license.txt

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

EXAMPLES
- ExtractArchive.pb
-- extracts files from an RAR archive
- ListArchive.pb
-- lists information from files contained within an RAR archive
- MemoryArchive1.pb
-- displays images extracted into memory from a CBR archive, saved to an SQLite database
- MemoryArchive2.pb
-- displays images extracted into memory from an SQLite database
Last edited by JHPJHP on Sat Oct 16, 2021 8:51 pm, edited 93 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
Wolfram
Enthusiast
Enthusiast
Posts: 529
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
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
Post Reply