Mail Archives: djgpp/1997/03/09/11:33:45
On 8 Mar 1997, Paul Hooper wrote:
> brains over this problem. Can someone tell me what is going on?? I cannot
> get a simple Int21 function 3D (open a file to work), using the CWSDPMI.
[snip]
> I really look forward to hearing from someone about this. I feel like I am
> missing.something really obvious.
You miss the DJGPP FAQ list. Section 18.1 explains why you shouldn't
expect INT 21h to work from protected mode, and then sections
18.2-18.4 tell you how you should do it in DJGPP.
If you tried this with Windows and it worked, that's because Windows
is not only a DPMI host, it is also a DOS extender: it traps all the
Int 21h functions and processes them by transparently moving the data
between your program and DOS. You didn't expect such trickery from
CWSDPMI which is a 25K program, did you?
(Btw, the FAQ is available as v2/faq210b.zip from the same place you
get DJGPP.)
- Raw text -