I'm trying to load/save and XML file from ENV:/ENVARC: with IPrefsObjects->ReadPrefs.
Code: Select all
...
#define LIBNAME "datetime.docky"
..
err = IPrefsObjects->ReadPrefs(dict, READPREFS_FileName,LIBNAME".xml",
READPREFS_ReadENV,TRUE, READPREFS_ReadENVARC,TRUE, TAG_DONE);
...
READPREFS_ReadENVARC - (BOOL) Defaults to TRUE.
and the same for 'IPrefsObjects->WritePrefs':
Code: Select all
...
#define LIBNAME "datetime.docky"
..
err = IPrefsObjects->WritePrefs(dict, WRITEPREFS_FileName,LIBNAME".xml",
WRITEPREFS_WriteENV,TRUE, WRITEPREFS_WriteENVARC,TRUE, TAG_DONE);
...
WRITEPREFS_WriteENVARC - (BOOL) Defaults to FALSE.
But it seems it doesn't load/read niether from ENV: or ENVARC: :-/
Using snoopy it just tries to load 'datetime.docky.xml' without any path "assigned".
Am I missing something?
Do I have to 'RegisterApplication()' to use such ENV/ENVARC load/save method?
TIA