[Module] Application Registry (all OS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] Application Registry (all OS)

Beitrag von Thorsten1867 »

Application Registry - Module (all OS / 64Bit)

Die Anwendung ist vergleichbar mit der Windows Registry, bloß eben für das eigene Programm.
Man kann viele programminterne Daten dort ablegen und diese beim nächsten Programmstart wieder verwenden (z.B. Status einer ComboBox oder der letzte benutze Pfad für den OpenFileRequester())

Code: Alles auswählen

; AppReg::Remove()     - remove this application registry
; AppReg::Delete()     - deletes a 'Name' or a 'HKey'
; AppReg::GetFloat()   - returns the value as float
; AppReg::GetInfo()    - returns infos about the application (AppName/Publisher/Date of modification)
; AppReg::GetInteger() - returns the value as integer
; AppReg::GetValue()   - returns the value as string
; AppReg::SetFloat()   - store a float number
; AppReg::SetInteger() - store an integer number
; AppReg::SetValue()   - store a string
; AppReg::Open()       - open new or existing Application Registry
; AppReg::Close()      - close Application Registry and save it to file
Download: ApplicationRegistryModule.pbi
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild