[comp.os.msdos.programmer] Programming a Mouse with Turbo C/C++

umholtm0@ccu.umanitoba.ca (Heston Holtmann) (05/03/91)

  As a new programmer to ibm/ms-dos/intel based machines, I was hoping to be able to program the mouse for complete mouse based applications as easily as it wasfor the Amiga or Macintosh using C or C++.  This task, however, is not the case
after going through my Turbo C/C++ docs..
 
  So, could someone PLEASE (at least) point me in the correct direction with
regards to this problem???  Any indication as to how many different ways there
are programming the mouse, and which way is the best/worst or quickest to go
about would be helpfull.
 
  I am an experienced C programmer as well as MC680x0 assembly programmer so
being techinal is not a problem.  I also have a basic understanding of 
how ms-dos functions at the interupt/bios level for i/o, BUT i would prefer to
avoid i80x86 ASSEMBLY AS MUCH AS POSSIBLE.

	Heston Holtmann.

cadsi@ccad.uiowa.edu (CADSI) (05/03/91)

From article <1991May3.000656.1462@ccu.umanitoba.ca>, by umholtm0@ccu.umanitoba.ca (Heston Holtmann):
> 
>   As a new programmer to ibm/ms-dos/intel based machines, I was hoping to be able to program the mouse for complete mouse based applications as easily as it wasfor the Amiga or Macintosh using C or C++.  This task, however, is not the case
> after going through my Turbo C/C++ docs..

>  
>   So, could someone PLEASE (at least) point me in the correct direction with
> regards to this problem???  Any indication as to how many different ways there
> are programming the mouse, and which way is the best/worst or quickest to go
> about would be helpfull.
 
Windows 3.0 could help here.  Otherwise, get a third party Mouse Event
library (Zinc works).  Last, make your own Event (Queue) classes.  The
latter is what I did (its copyright CADSI so I can't release it).  The
last option is best in my book, 'cause you can make them work in
Phar Lap (and other) extended DOS.  This is required in my book.  If
you do the latter, there is a little eensy teensy book called MS-DOS
extensions that will be invaluable.  I got it at B. Dalton for about
$7.  

|----------------------------------------------------------------------------|
|Tom Hite					|  The views expressed by me |
|Manager, Product development			|  are mine, not necessarily |
|CADSI (Computer Aided Design Software Inc.	|  the views of CADSI.       |
|----------------------------------------------------------------------------|