From: Derek Newsgroups: comp.os.msdos.djgpp Subject: Re: intrrupt handler. Date: Tue, 25 May 1999 22:03:27 -0500 Organization: The University of Manitoba Lines: 45 Message-ID: <374B647E.1A9D48EA@geocities.com> References: <374A2F16 DOT 1C2B80DE AT geocities DOT com> NNTP-Posting-Host: annex3-18.cc.umanitoba.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: canopus.cc.umanitoba.ca 927687837 22496 130.179.153.130 (26 May 1999 03:03:57 GMT) X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca NNTP-Posting-Date: 26 May 1999 03:03:57 GMT X-Mailer: Mozilla 4.6 [en] (Win95; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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.