From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: dmpi Date: Wed, 16 Oct 1996 21:36:50 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 35 Message-ID: <3265B7E2.47@cs.com> References: <543jp5$3rh AT news DOT stealth DOT net> 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: Mohan Khurana To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Mohan Khurana wrote: > > Is it possible to bind cwsdpmi into a DJGPP EXE so that when run in > MS-DOS, it will not require the user to manually load CWSDPMI? Quake > loads CWSDPMI without using a batch file. You simply run the EXE and > it loads DPMI and all. So does DJGPP. If DJGPP isn't automatically loading cwsdpmi when it runs then you've set something up wrong. As long as cwsdpmi is 1) in the same directory as the program using it, or 2) in the PATH, it WILL be loaded if no other DPMI is detected. If both of these are the case for you, please post a report on your configuration to the newsgroup as described in the FAQ (v2/faq201b.zip) section 6.12. If you are trying to distribute your DJGPP-compiled programs, all you need is to place cwsdpmi.exe in the same directory as the program and it will be loaded automatically. You should also place emu387.dxe in there too if your program uses floating point code. Currently, cwsdpmi cannot be bound into an EXE. There is a program called PMODE which can be bound onto a DJGPP program, but it has a few limitations; if you want to experiment with it, it can be obtained from SimTel. Consider however that many commercial programs use DOS4GW as their 32-bit extenders and don't have any problem with it. -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------