juana@dciem.dciem.dnd.ca (Juana Chang) (08/17/90)
Hi. I have a quick question about the function EraseRect. I'm using it to erase the rectangle of a window. EraseRect( &(window->portRect) ); When I execute this statement I receive an "illegal instruction" error message in ThinkC 4.0. Would someone explain why I'm getting this error. Thanks in advance. Juana
russotto@eng.umd.edu (Matthew T. Russotto) (08/17/90)
In article <3462@dciem.dciem.dnd.ca> juana@dciem.dciem.dnd.ca (Juana Chang) writes: > > >EraseRect( &(window->portRect) ); > >When I execute this statement I receive an "illegal instruction" error >message in ThinkC 4.0. Did you do a SetPort(window) first? One of the things that can really get you is that opening a window does NOT set the current port to that window. -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu ][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions?