From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: DPMI incorporation... Date: Sat, 21 Dec 1996 12:27:58 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 31 Message-ID: <32BC484E.3563@cs.com> References: <19961220 DOT 124010 DOT 6919 DOT 6 DOT jesusfreak44 AT juno DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp106.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Brian J Landsberger DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 * 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