Article View: a.bsu.programming
Article #86742Mouse Help!!!
From: El Dziablo
Date: Tue, 10 Jun 1997 00:00
Date: Tue, 10 Jun 1997 00:00
50 lines
2109 bytes
2109 bytes
I'm trying do do a "Mouse Event Handler" Routine but it Doesnt work... I
don't know What's bad in it... could somebody just take a look and tell me
where is the problem?
#include<conio.h>
#include<dos.h>
#include<stdio.h>
int i;
void MouseHandler(void){
asm{
pusha
mov ax,seg i
mov ds,ax
};
printf("Mouse Event!");
asm{
popa
}
};
void main(void){
segment=FP_SEG(MouseHandler);
offset =FP_OFF(MouseHandler);
MouseHandler();
asm{
mov ax,0
int 0x33
mov ax,1
int 0x33
mov ax,seg MouseHandler
mov es,ax
mov dx,offset MouseHandler
mov cx,0xff //mask
mov ax,0x000c
int 0x33
}
while(!kbhit());
};
We should see "MOUSE EVENT!" each time we move or click on the mouse... but
in fact it does nothing or say Stack Overflow...
Thanks for your precious help!
Dziablo@lords.com
--
Dziablo@lords.com
Technical Details
Message-ID:
<01bc759d$4e46a860$2a68fdcf@pboucher.videotron.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f6aa,fbde980d5397fbc0,start X-Google-Attributes: gid10f6aa,public X-Google-Thread: f5380,fbde980d5397fbc0,start X-Google-Attributes: gidf5380,public X-Google-Thread: 107d8b,fbde980d5397fbc0,start X-Google-Attributes: gid107d8b,public X-Google-Thread: 10804c,fbde980d5397fbc0,start X-Google-Attributes: gid10804c,public X-Google-Thread: 11431d,fbde980d5397fbc0,start X-Google-Attributes: gid11431d,public X-Google-Thread: 102bfa,fbde980d5397fbc0,start X-Google-Attributes: gid102bfa,public X-Google-Thread: f9e32,fbde980d5397fbc0,start X-Google-Attributes: gidf9e32,public X-Google-Thread: 10226d,fbde980d5397fbc0,start X-Google-Attributes: gid10226d,public From: "El Dziablo" <dziablo@lords.com> Subject: Mouse Help!!! Date: 1997/06/10 Message-ID: <01bc759d$4e46a860$2a68fdcf@pboucher.videotron.ca> X-Deja-AN: 247478053 Organization: The Happy Greloze Team Newsgroups: a.bsu.programming,adass.iraf.programming,alt.comp.shareware.programmer,alt.msdos.programmer,alt.mud.programming,alt.talkers.programming,comp.msdos.programmer,comp.os.msdos.programmer,comp.os.msdos.programmer.turbovision,comp.os.ms-windows.program