ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) (10/20/90)
> ... Unfortunately XtPutApplicationResources() does not exist and I > have not found any easy way of emulating its behaviour. So does > anyone know of a smart way of doing it? From your brief description, I would suggest investigating resource database merging. Save the settings in a resource database, and then merged the saved database as appropriate into the Xt resource database--this will put the saved information where Xt will find it. ----------------------------------------------------------------------- Benjamin Ellsworth ben@cv.hp.com ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------
jones@cernvax.UUCP (robert jones) (10/25/90)
I have an application where I want save the current settings to a file so
that they can be used again the next time the application runs. I read the file
using the XtGetApplicationResources routine which is very convenient:
XtGetApplicationResources (toplevel, &app_data, app_resources,
XtNumber (app_resources), NULL, 0);
I thought if I update the fields in app_data with the new setting I could use
info in the structure to write the file (ie do the equivalent of
XtPutApplicationResources() ). Unfortunately XtPutApplicationResources()
does not exist and I have not found any easy way of emulating its behaviour.
So does anyone know of a smart way of doing it?
Thanks in advance.
Bob Jones
CERN
European Organisation for High Energy Physics
Geneva
Switzerland
jones@online.decnet.cern.ch
jones@cernvax