Mail Archives: djgpp/2000/02/16/07:43:04
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 -