Mail Archives: djgpp/1999/05/26/12:45:18
whoops..sorry..a couple mistakes...I corrected them but it stiil doesn't
work....below is the corrected version..
Derek wrote:
> Hello,
> I'm tring to install a mouse handler and have run into a few
> problems...I have read the faq and got this out of it:
>
> _go32_dpmi_seginfo oldmousehandler,newmousehandler;
>
> save old handler
>
> _go32_dpmi_get_protected_mode_interrupt_vector(0x0C,&oldmousehandler);
>
> //set up new handler
> newmousehandler.pm_offset=(int)mousehandler; //(mousehandler is the
> function)
> newmousehandler.pm_selector=_go32_my_cs();
>
> _go32_dpmi_chain_protected_mode_interrupt_vector(0x0C,&newmousehandler);
>
> //install handler
>
> _go32_dpmi_set_protected_mode_interrupt_vector(0x0C,&newmousehandler);
>
> This all pretty much came straight from the faq...
> Should this work? (ie. is it my mouse handling function) ..Or should I
> be using the real mode versions of these?
>
> I can do this all well and fine in 16 bit turbo pascal using
> getintvec($0C, @oldmousehandler);
> setintvec($0C, addr(newmousehandler));
>
> However I would really like to be able to do this is djgpp...
> ..Sorry for the length of this message...I tried not to post too much
> code
>
> TIA
> --
> Derek.
- Raw text -