Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!portal!cup.portal.com!Chris_F_Chiesa From: Chris_F_Chiesa@cup.portal.com Newsgroups: comp.sys.amiga.programmer Subject: Re: Beginner question, revisited(maybe) Message-ID: <38855@cup.portal.com> Date: 4 Feb 91 13:43:43 GMT References: <38607@cup.portal.com> <801@cbmger.UUCP> Organization: The Portal System (TM) Lines: 24 Hello All. First, thanks to everyone (all three of you) who responded to my questions; I will be contacting CATS for the 1.3 (and 2.0? There were varying opinions as to whether 2.0 is "available" yet) KS/WB with docs... Second, there were varying opinions as to how to solve my "window opens but no graphics appear" problems. One person said I had to create a tmpras structure, allocate bitmaps, etc. etc., whereas another said I just had to grab the RPort supplied with my window after OpenWindow() did its thing. I investigated both of these alternatives, and ended up typing in the first example program from Rob Peck's book, fixing several syntax/punctuation errors, and cross-checking HIS program (which worked) against MINE (which seemed to do the EXACT SAME things but DIDN'T work.) I found the problem, and boy do I feel stupid: I was opening the intution.library, but never opening the graphics.library ! Oddly, this didn't seem to crash Move(), Draw(), PolyDraw(), or DrawBorders(), but DID crash SetAPen() ! Figure THAT one out. Anyway, I added the appropriate OpenLibrary() call to provide graphics library functions, and the problems evaporated. I have had the delightful pleasure, this very morning, of seeing my very own graphics appear in my very own window on the Amiga! What an experience! :-) Chris Chiesa Chris_F_Chiesa@cup.portal.com