From owner-freebsd-questions Wed Mar 26 00:00:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA24321 for questions-outgoing; Wed, 26 Mar 1997 00:00:22 -0800 (PST) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA24310 for ; Wed, 26 Mar 1997 00:00:12 -0800 (PST) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id KAA07501; Wed, 26 Mar 1997 10:58:31 +0300 (IDT) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma007499; Wed Mar 26 10:58:23 1997 Message-ID: <3338D71E.16D2@barcode.co.il> Date: Wed, 26 Mar 1997 10:58:22 +0300 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Zach Heilig CC: questions@freebsd.org Subject: Re: X11 programming... References: <19970325201750.16289@gaffaneys.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Zach Heilig wrote: > > I know I should get a book, but I haven't figured out which of the available > books are good. Any hints here would be appreciated (cost isn't really a > very big issue; <= US$500 would be great). In that case, and if you're serious about programming X get O'Reilly's series on teh subject. When I used to rpogram X (back in X11R3 days) they were excellent. Take a look at: http://www.ora.com/publishing/unix/products.htm There's a series of about 9 books on the subject there. You can skip volume 0 (unless you intent to write your own Xlib or XServer), volume 3 (if you know how to *use* X) and volume 8 (if you know how to install and configure X and its options). The rest (i.e. 1,2,4,5 and 6A-C for Motif) are all that you need to program X. You can probably get those books at better prices in other places too. > > So, I thought I would see how far I could go just reading the man pages. > Basically, I am just trying to get a window (white... or actually _any_ > background) up on the screen. This is as far as I have gotten, but I just > can't seem to get the window to display. I don't get any compile errors or > run-time errors (anymore :-), but still I get nothing. I wonder what I am > missing? Probably an event loop. Try synching your application to see if that's the problem (though you might be missing many more things, as showing up a windows with Xlib is a long and painful process...) [code snipped] > > -- > Zach Heilig (zach@blizzard.gaffaneys.com) | ALL unsolicited commercial email > /var/spool/news is 110% full, | is unwelcome. I avoid dealing > please delete all the spam you can. | with companies that email ads. Nadav