Path: utzoo!attcan!uunet!tdatirv!sarima From: sarima@tdatirv.UUCP (Stanley Friesen) Newsgroups: comp.windows.x Subject: Re: SunView-XView Conversion ? Message-ID: <34@tdatirv.UUCP> Date: 19 Oct 90 18:36:58 GMT References: Reply-To: sarima@tdatirv.UUCP (Stanley Friesen) Distribution: comp Organization: Teradata Corp., Irvine Lines: 46 I am posting this because I can never get any mail through snorkelwacker. In article himsolt@trillian-gw.fmi.uni-passau.de (Michael Himsolt) writes: >I am trying to convert a SunView application to XView, using XView 2.0 >with X11R4. I wonder whether someone has experiences with >SunView-XView conversion. Yes. >- Sun claims easy conversion "within a view days". Any comments ? In general they are correct. There are a number of gotcha's though. (The awk script that does the base conversion does a good job of pointing most of them out though, so it is not too bad) >- My program involves both (a lot of) SunView windows and a built-in >"graphic system" using Pixrect. What about XView performance under >these circumstances ? The system must run on a SUN-3/50 with good >performance (the SunView version had no problems). Well, the Pixrect stuff is the hardest to convert, it does not really exist under X. You will need to rewrite the Pixrect code into xlib calls on the underlying window. (Some of the most basic PixWin stuff is simulated with macros under XView, but it is not very complete, or efficient). This is the worst of the gotcha's - and the hardest part of the conversion. >- Pixrect support seems to be strange. Without linking -lpixrect, I >get warnings that mem_create and pr_text are undefined, the other >routines seem to be defined. [I tried to link -lpixrect, but then I >got a runtime error that pr_vector is unsupported]. As stated above, >the program is heavily based on PixRect, so I need it. Is there a >reasonable PixRect support in XView ? No. it looks like you will need to convert more completely. >- Sun seems to provide some PixWin-compatible procedures, but I could >not find anything about that in the XView Programming manual. Because they are provided for compatibility only, and are not supported. (That is they are 'depreciated'). your best bet is to really convert to xlib for the low-level graphics. -- --------------- uunet!tdatirv!sarima (Stanley Friesen)