rbd@lamont.ldgo.columbia.edu (roger davis) (08/09/90)
I have an OpenWindows 1.0 application that draws PostScript output into an X11 window. Installing OpenWindows 2.0 has broken this application because the mechanism for converting an X11 Drawable ID into a NeWS canvas has apparently changed. The following cps code, which retrieves my X client's resource database, seems to be the source of the problem: cdef news_client(int ClientID) /ClientDB ClientID /XLookupClient /new XResource send send def When this is executed, I get Process: 0x412088 (fats NeWS client) Error: undefined Stack: Executing: XLookupClient At: Reading file(?,W,R) (Typing this at psh generates an identical error.) Looks to me like XLookupClient got waxed or redefined in OW 2.0. Unfortunately, I've got no documentation (our sales rep just loaned us a distribution tape until we get our own stuff), so I haven't got a clue. (I originally hacked this up by looking at the source for xps, which was distributed with 1.0 but not 2.0. There is an xps binary in 2.0, but it doesn't appear to work properly either!) Can anyone out there shed any light on this or, better yet, supply me with code that will convert an existing X11 pixmap into something that can be passed as an argument to setcanvas inside my cps routines? Thanks much. -- Roger Davis Lamont-Doherty Geological Observatory rbd@lamont.ldgo.columbia.edu