Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Resource problem (& XQueryTree)!! Message-ID: <8902011313.AA00784@EXPIRE.LCS.MIT.EDU> Date: 1 Feb 89 13:13:40 GMT References: Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 22 I can/can't get the data from the command line. Go back and read about resource databases again. Instead of XrmGetResource (comDB, ".dataBase", ".DataBase", string_type, &value) you need something like char name[256], class[256]; strcpy(name, argv[0]); strcat(name, ".dataBase"); strcpy(class, argv[0]); strcat(class, ".DataBase"); XrmGetResource (comDB, name, class, string_type, &value) I try to get the property of XA_WM_NAME, but just get Segmentation error. PLEASE learn to use lint before bothering people on this list. Your call to XGetWindowProperty is missing an argument and has another argument passed incorrectly.