Mail Archives: djgpp/1995/06/29/04:43:41
*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 <stdio.h>
#include <conio.h>
#include <dos.h>
#include <mouse.h>
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
- Raw text -