The program then apparently uses this preference file for subsequent reads and writes. However, When I close the program and at this point the variables are saved, another preference file is created in the directory C:\Users\OEM\AppData\Local\VirtualStore\Program Files(x86)\. However, when I then went on to build a setup file where the exe file and preference file are placed together in the same installed program directory, when the program is started it works fine, apparently reading the default preferences file (there is error checking within the program code for the preference file). ChangeTheme is a tool for 'instantly' switching the color theme of the PureBasic IDE, faster than going through the Preferences window. I have done searches on the forum and on Google and tried various different options and settings, both within my program code and in the Inno Setup Compiler that I am using to create a setup file, without success. When I create the exe and put this in a directory with a default preference file, it all works correctly. This includes the latest versions of famous UserLibs by Rings, Danilo and other well-known authors. ![]() A large package of powerful UserLibs has been released under the name PBOSL - PureBasic OpenSource Libraries. Now, color printing is enabled on your printer. PureBasic - Preference example file (c) Fantaisie Software - IfCreatePreferences(GetTemporaryDirectory() 'Preferences.prefs') PreferenceGroup('Global') WritePreferenceString('ApplicationName', 'MP3 Player') WritePreferenceString('Version', '1. User-Libs Exceptions (libs for Linux
0 Comments
Leave a Reply. |