From: Derek Newsgroups: comp.os.msdos.djgpp Subject: intrrupt handler. Date: Tue, 25 May 1999 00:03:18 -0500 Organization: The University of Manitoba Lines: 38 Message-ID: <374A2F16.1C2B80DE@geocities.com> NNTP-Posting-Host: annex3-46.cc.umanitoba.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: canopus.cc.umanitoba.ca 927608617 16256 130.179.153.158 (25 May 1999 05:03:37 GMT) X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca NNTP-Posting-Date: 25 May 1999 05:03:37 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 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(0x3F8,&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(0x03F8,&newmousehandler); //install handler _go32_dpmi_set_protected_mode_interrupt_vector(0x03F8,&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($3f8, @oldmousehandler); setintvec($3f8, 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.