#include <Message.h> #include <File.h> int main(int argc, char **argv) { BApplication app(); // useful ? BMessage *m; int i; m = new BMessage(); for(i=1; i<argc; i++) { BFile f(argv[i], O_RDONLY); m->Unflatten(&f); m->PrintToStream(); } } Though ~/config/settings/Keyboard_settings certainly isn't a flattened BMessage more a C struct or something, sadly : [revol@patrick /boot/home/devel]$ ./dumpbm ~/config/settings/Keyboard_settings BMessage: what = (0x0, or 0) François. En réponse à Andrew Edward McCall <mccall@xxxxxxxxxxxxxxxxxxxxx>: > Hi, > > I am working on some preference controls, and I need a little help > working out a way of getting the information of the Keyboard_settings > preference save file. > > If anyone has any experience of doing something like thiy, please can > you contact me off the list to discuss it? I presume its just a > flattened BMessage, but I need help working out the structure of it so I > > can read it into my program. > > Thanks > > Andrew Edward McCall > mccall@xxxxxxxxxxxxxxxxxxxxx > -- > OpenBeOS - Join the revolution NOW!! > http://www.openbeos.org/ > > > >