[16:27:51] [ERROR] OpenPreferences(): invalid value specified for parameter 'Flags'.
I have checked my compiler options several times, with both asm and C I get the same result.
What am I doing wrong?
Just because it worked doesn't mean it works. PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Thanks for your reply.
#PB_Preference_NoBOM seems to be an integer, I tried 4 as well with same results.
Just because it worked doesn't mean it works. PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Quin wrote: Sun Jan 07, 2024 10:52 pm
It would appear the flag is only for CreatePreferences(), which makes sense. I'm not entirely sure how it would work when opening.
Hey thanks Quin!
I always interpret too much or the wrong things into the statements.
But what the heck, it still seems to work for me.
Fred wrote:
Added: 'Encoding' optional parameter to OpenPreference() to handle properly UTF-8 files without BOM
Added: '#PB_Preference_NoBOM' flags for CreatePreference() to create UTF-8 preference files without BOM
BTW: I only use CreatePreferences() very rarely. Most of the time I create the prefs with an editor and use OpenPreferences() for reading and writing.
Just because it worked doesn't mean it works. PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Updated: Toolchain on Windows now use VisualStudio 2022 and new MSVCRT for faster PureBasic programs and easier external libs integration.
Okay fine I'll be that guy, reading 8 pages to see if it had been mentioned at it not being left me a little weirded out surely that is monumental upgrade.
Is there any more details other than the above on how that works?