Mail Archives: djgpp/1998/02/03/17:17:13
Sivakumar Radhakrishnan writes:
> Perhaps this question has been raised by someone else
>regarding DMPI and win95. We are currently having run time errors
>when executing "__dpmi_map_physcial_memory() in WIn95.
I presume you mean the __djgpp_map_physical_memory() function, and
saying dpmi is just a typo?
Bad news, I'm afraid. This routine uses a DPMI 1.0 function call, but
win95 only supports DPMI 0.9, so it will always fail. There is no way to
do that kind of memory mapping under Windows.
>The question is how can we fix this problem and if possible where can
>one get the DMPI v 1.0.
You can't. CWSDPMI supports several of the DPMI 1.0 functions, so this
code will work fine when using that under DOS, but it is impossible to
replace the operating system DPMI when you are running under a protected
mode system like win95. I think it is very unlikely that Microsoft will
ever bother to support DPMI 1.0, so I'm afraid your only solutions are
not to use win95, or not to use these functions...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -