Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!mit-eddie!uw-beaver!rice!sun-spots-request From: noamb@tybalt.caltech.edu (Noam Bernstein) Newsgroups: comp.sys.sun Subject: SunView and Canvases help Keywords: Windows Message-ID: <9872@cit-vax.Caltech.Edu> Date: 9 Mar 89 07:04:04 GMT References: <8902082033.AA20069@uirvld> <1034@auspex.UUCP> Sender: usenet@rice.edu Organization: California Institute of Technology Lines: 35 Approved: Sun-Spots@rice.edu Original-Date: 2 Mar 89 01:35:22 GMT X-Sun-Spots-Digest: Volume 7, Issue 189, message 14 of 17 Heeelp. I'm looking for help from anyone who has used SunView on a Sun 386i The following program is copied almost straight out of the manual. Unfortunately, it doesn't seem to work. It hangs on the window_main_loop and waits for me to either type ^C or close the window to continue. /* compile using the command */ /* "cc -o object.file source.file -lsuntool -lsunwindow -lpixrect" */ #include #include main (argc, argv) int argc; char **argv; { Frame frame; Canvas canvas; Pixwin *pw; frame = window_create (NULL, FRAME, 0); canvas = window_create (frame, CANVAS, 0); pw = canvas_pixwin (canvas); pw_vector (pw, 50,50,100,100,PIX_SRC,1); pw_text (pw,125,200,PIX_SRC,0,"Hello World!"); window_main_loop (frame); window_done(frame); exit (0); } I am compiling using the command in the comment on the second line. noamb@tybalt.caltech.edu noamb@citiago BITNET