ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/29/04:43:41

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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019