Microsoft KB Archive/31429

= How to Bypass MOUSE.LIB in QuickBASIC Version 4.00 =

Article ID: 31429

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Mouse Driver 9.1 Standard Edition
 * Microsoft Mouse Driver 7.04 Standard Edition
 * Microsoft Mouse Driver 8.2 Standard Edition
 * Microsoft Mouse Driver 9.0 Standard Edition
 * Microsoft QuickBasic 4.0

-



This article was previously published under Q31429



SUMMARY
You can access the mouse driver by calling an interrupt in QuickBASIC rather than by creating a QuickBASIC library with the MOUSE.LIB. Follow the guidelines for programming in assembler language and call the interrupt 33 hexadecimal or 51 decimal.

The following is a QuickBASIC, version 4.00, example for showing the mouse cursor: ' declare type registers TYPE REGTYPE ax AS INTEGER bx AS INTEGER cx AS INTEGER dx AS INTEGER bp AS INTEGER si AS INTEGER di AS INTEGER ds AS INTEGER es AS INTEGER END TYPE

DIM INREGS AS REGTYPE, OUTREGS AS REGTYPE ' initialize mouse INREGS.ax = 0 CALL INTERRUPT(51, INREGS, OUTREGS) 'show mouse cursor INREGS.ax = 1 CALL INTERRUPT(51, INREGS, OUTREGS) If you have the MOUSE.LIB utility, you can make a Quick library and call the mouse using the &quot;CALL MOUSE(m1%,m2%,m3%,m4%)&quot; command.

Mouse functions are described in the Microsoft Mouse &quot;Programmer's Reference Guide.&quot;

Additional query words: 9.00 BASIC

Keywords: KB31429

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.