Mail Archives: djgpp/1996/12/21/13:27:10
Brian J Landsberger wrote:
>
> I am a newbie to C / C++ programming, I have been working with
> DJGPP and would like to know how to incorporate DPMI into a program. I
> would like a functio, if anyone has a snippet that they would be willing
> to part with it would be greatly appriciated.
DPMI support is automatically incorporated into every program the
compiler creates. There is nothing special at all that you need to do
to invoke this. Just make sure you have a DPMI host available to your
programs and off they run!
If, on the other hand, you actually need to interface with the DPMI host
itself, DJGPP has a host of functions for this purpose. Look up the
following things in the libc docs: all functions starting with __dpmi,
all functions starting with _go32_dpmi, and the DPMI Overview. After
that, read the FAQ's chapters on hardware and low-level programming, and
follow the pointers to several very good user-designed references on the
subject.
--
John M. Aldrich <fighteer AT cs DOT com>
* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
again.
* It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
- Raw text -