Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
Re: Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
+1
being able to load inis from memory was something I've actually needed before, and saving a temporary file and quickly deleting is not very convenient.
being able to load inis from memory was something I've actually needed before, and saving a temporary file and quickly deleting is not very convenient.
Re: Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
+1, needed this in my project today.
PB v5.40/6.10, Windows 10 64-bit.
16-core AMD Ryzen 9 5950X, 128 GB DDR5.
16-core AMD Ryzen 9 5950X, 128 GB DDR5.
Re: Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
-1
Makes no sense, because you cannot write prefs into the executable.
You can also read the data cleanly from a DataSection.
Makes no sense, because you cannot write prefs into the executable.
You can also read the data cleanly from a DataSection.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
I don't get what y'all are talking about.
If I want to include an ini file into my executable with includeBinary, just like I would include a json file, or an xml file, and I could CatchJson/CatchXml, or even, heck, ParseJson/ParseXml, why shouldn't I be able to CatchPreferences and ParsePreferences?
Or not even only for reading from executable, but what about reading/parsing it from a memory buffer downloaded with network lib, or http lib, or a string made up on the fly, or many other cases where needing to write to a (temporary) file is not ideal at all.
If I want to include an ini file into my executable with includeBinary, just like I would include a json file, or an xml file, and I could CatchJson/CatchXml, or even, heck, ParseJson/ParseXml, why shouldn't I be able to CatchPreferences and ParsePreferences?
Or not even only for reading from executable, but what about reading/parsing it from a memory buffer downloaded with network lib, or http lib, or a string made up on the fly, or many other cases where needing to write to a (temporary) file is not ideal at all.
Re: Add CatchPreferences(*Preference,PreferenceSize.i[, Flags])
All functions that write into/read from files should be doable in memore too. Including, imho, SVGVectorOut() (why do I necessarily have to write it into a file?).
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB