Xref: news-dnh.mv.net comp.os.msdos.djgpp:678 Newsgroups: comp.os.msdos.djgpp Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!news.tamu.edu!news.utdallas.edu!corpgate!bcarh189.bnr.ca!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!ao950 From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Subject: Problem with Mouse Functions Sender: ao950 AT freenet2 DOT carleton DOT ca (Paul Derbyshire) Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Organization: The National Capital FreeNet Date: Wed, 28 Jun 1995 04:00:21 GMT Lines: 41 To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp *sigh* Another day, another inexplicable djgpp snafu. I wish I weren't missing the docs, so I could easily find out what's been mis-installed this time... It's the GetMouseEvent() function from LIBGR.A. The problem is that it seems to hang when I call it. I have some kind of three-button mouse, plugged into I-don't-know-what-port (not a COM port though). I wrote this source and saved it as MTEST.C, then compiled with GCC MTEST.C -lpc -lgr -o MTEST.COF then ran it with GO32 MTEST.COF The clrscr() never executes and main() never ends. It appears that the GetMouseEvent function isn't returning. #include #include #include #include void main (void) { MouseEvent m; int f; MouseGetEvent(f, &m); clrscr(); } -- .*. "Clouds are not spheres, mountains are not cones, coastlines are not -() < circles, and bark is not smooth, nor does lightning travel in a `*' straight line." ,------------------------------------------------ -- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca