Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!agate!helios.ee.lbl.gov!nosc!humu!uhccux!satish From: satish@uhccux.uhcc.hawaii.edu (Satish Kumar) Newsgroups: comp.windows.x Subject: Executing X11 programs Keywords: XSetStandardProperties, Windows Message-ID: <4162@uhccux.uhcc.hawaii.edu> Date: 22 Jun 89 02:37:50 GMT Organization: University of Hawaii Lines: 37 I am new to the X programming(environment). I am programming using Xlib functions/features offered by X11 (Xlibraries). I am not using any sort of widgets or toolkits for my application. I succesfully compiled and linked a program (program is a simple one, i.e to write my name in a rectangle). The executable program is upto date (i.e without any errors). When I execute the program, I can succesfully connect to the X server. But nothing will be displayed on the terminal (in the window).the control returns to the unix shell ( in the default window, i.e the window started by 'xinit'). For executing any program, I am not sure whether 'uwm','xterm' should be running at background mode or not. But even if they are running in background and if I execute my program, the response is same as mentioned. For any thing to be displayed, the corresponding window should be mapped(even the parents). But before mapping a window, standard properties are to be set using XSetStandardProperties(.......) function (of Xlib). This function has Argc & Argv as two of the arguments to be passed/specified. These arguments are to be passed while executing the program (i.e command line arguments). But I do not know the arguments to be specified, the syntax /format of the arguments. I am not able to conceive this concept from the book (Xlib programming manual, by Adrian Nye, O'Reilly Associates, volume 1) The program I have written is almost similar to the one given in the manual (Basicwin program, page 77). Please send your replies/answers/suggestions to the e-mail address given below. I thank you in advance for the help. - Satish . ADDRESS (e-mail) : satish@uhccux.uhcc ORGANIZATION : INFORMATION AND COMPUTER SCIENCE DEPARTMENT, UNIVERSITY OF HAWAII, HONOLULU, HAWAII, 96822,U.S.A ADDRESS : 2920, SOUTH KING STREET, HONOLULU, HAWAII 96826, U.S.A PHONE : (808) 941-9380.