delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/16/07:43:04

From: Hans-Bernhard Broeker <broeker AT acp3bf DOT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: using DPMI (specifically, CWSDPMI)
Date: 16 Feb 2000 11:53:45 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 25
Message-ID: <88e349$1fs$1@nets3.rz.RWTH-Aachen.DE>
References: <20000215231128 DOT 03451 DOT 00000732 AT ng-fb1 DOT aol DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 950702025 1532 137.226.32.75 (16 Feb 2000 11:53:45 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 16 Feb 2000 11:53:45 GMT
User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586))
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Opua <opua AT aol DOT com> wrote:

> My app uses alot of MS specific C extensions and #includes DOS.H
> too.  I don't have the time (or gray matter) to carefully re-write
> the code so it will compile with DJGPP.

In that case, you've got yourself stuck. You shouldn't have written
such MS-centric stuff, in the first place. Now you're getting the
punishment for that, sort of. You *will* have to carefully re-write
some parts of that code, there's absolutely no other way. You could,
in principle, use another type of DOS extender, suited for use with MS
16bit C. But I suspect you'll find it hard to still find one, these
days --- this is essentially dead and abandoned technology. On top of
that, you'ld still have to modify your code, to work with that
extender, so you wouldn't win much.

On the better side of it, you could use this problem of yours as the
motivation to write and publish a compatible drop-in replacement for
MS's "dos.h" that works with DJGPP, by mapping function names to those
from "pc.h" and/or "conio.h". Such a header might do others finding
themselves in the same kind of situation a big favour.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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