Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!msuinfo!news From: veerabad@buster.cps.msu.edu (Vibhu Veerabadrappa) Newsgroups: comp.windows.x Subject: a question on XAPPLRESDIR and xset +fp path. Message-ID: <1990Dec15.194935.12443@msuinfo.cl.msu.edu> Date: 15 Dec 90 19:49:35 GMT Sender: news@msuinfo.cl.msu.edu Distribution: usa Organization: Michigan State University, College of Engineering Lines: 44 Hi, I am a beginning programmer suing X windows, and so this may be stupid... I tried to set the shell variable XAPPLRESDIR to the pwd, and in my working directory, I have a file XHello which contains some resources for the application xhello.c (the example given in o'Reilly's book, p31). When I run the program, expecting it to take the resources from the said file, it simply refuses to do so. It still displays the default message "HELLO" ... again, I am assuming that you all know what program I am talking about ... it is the elementary program in p31 in O'Reilly and Nye's book. The exact commands I used are: <52 sapphire:~/project_X >set XAPPLRESDIR = `pwd`/ ^^^^^^^^^^^^^^^^^^^^^^^^ <53 sapphire:~/project_X >echo $XAPPLRESDIR ^^^^^^^^^^^^^^^^^ /usr/ua/ua/veerabad/project_X/ <54 sapphire:~/project_X >xhello ^^^^^^ and xhello did not read the XHello file. Another question is, I tried to change the font path fp using xset +fp as below and I got the error messagees shown: <57 sapphire:~/project_X >xset +fp /usr/ua/ua/veerabad/project_X/ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ X Error of failed request: BadValue (integer parameter out of range for operati on) Major opcode of failed request: 51 (X_SetFontPath) Minor opcode of failed request: 0 Resource id in failed request: 0x0 Serial number of failed request: 4 Current serial number in output stream: 6 <58 sapphire:~/project_X > Could someone tell me what it is, that I am doing wrong? e-mail would be better, as I may not catch the response on the news net. Thanks a lot, in advance. ---Vibhu. e-mail address: veerabad@buster.cps.msu.edu