www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/12/14:25:56

Message-Id: <199910130006.SAA11928@lakdiva.slt.lk>
From: "Kalum Somaratna" <kalum AT myflat DOT com>
To: djgpp AT delorie DOT com
Date: Tue, 12 Oct 1999 18:06:04 +0600
MIME-Version: 1.0
Subject: Re: Stub and DPMI server...
In-reply-to: <7tttfv$178l$1@bnews.gigabell.net>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 12 Oct 99, at 1:56, Tobias Koch <toby DOT koch AT okay DOT net> wrote:

> Hey there everybody !
> 
> I've been wondering if there is a decent internal stub available for DJGPP
> which will do all the DPMI services so I can get rid of CWSDPMI which
> actually sucks. 

Dear Tobias,
1. What exactly do you mean when you say that CWSDPMI sucks.
2. There is an DPMI server called PMODE/DJ wich can be bound 
to the EXE. Please read the FAQ for more details.

>I have encountered problems installing a mousehandler under
> CWSDPMI services while under Windows it works just great.

May be there is some fault in your code.  Installing mouse interrupt 
handlers under DPMI is tricky(ie DATA and CODE touched by the 
handler have to be locked ...etc).
The ALLEGRO game library <www.talula.demon.co.uk/allegro> for 
DJGPP wich also includes the source code has detailed example's 
of installing mouse handlers and hardware and software interrupt 
handlers.
So you might try examining the source for Allegro's routines and 
yours and see what is wrong.

> Any suggestions, thanks in advance.
> 

BTW you may try using allegro's mouse routines wich  support 
SVGA resolutions as well. I use Allegro for my game programs 
because I can spend time writing game code rather than 
reinventing the wheel (ie writing code for the SB, Mouse etc).

Hope this helps
Kalum <kalum AT myflat DOT com>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019