From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: How to set the segment:offset in Mouse function 0ch Date: 26 Aug 2003 11:04:01 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 16 Message-ID: References: <57708049 DOT 0308252129 DOT 2318ddbb AT posting DOT google DOT com> NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com john (ultraabc AT yahoo DOT com) wrote: : I made a function( mousehandler(void) ) that supposedly handles mouse : events, but I can't pass it in due to the fact that the mouse driver : still uses segment offset. I tried putting the selector (_my_cs()) in : es, and the 32-bit offset ( (int)mousehandler ) in dx, but that didn't : work. I can't use the transfer buffer __tb either, unless there's a : way I can pass the entire function there. Can anyone help? I need a : way to get the segment:offset pair of the said function, and I don't : know how to do it. Does FAQ 18.9 help? Right, MartinS