Mail Archives: djgpp/2000/02/16/07:47:57
Message-ID: | <005f01bf786f$84ecfd10$293f8589@gv015029.bgo.nera.no>
|
From: | "Gisle Vanem" <gvanem AT eunet DOT no>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: Untrapping Ctrl-C in DJGPP
|
Date: | Wed, 16 Feb 2000 12:18:12 +0100
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.5
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi> said:
>You can use even djgpp programs: first a slightly modified djgpp stub,
>then the PE executable, _then_ the djgpp COFF image.
>
>Now that I think about it, you might even be able to make a dual
>DOS/Windows program that shares most of its code in both environments:
>first the aforementioned real-mode stub that loads a COFF stub, then PE
>stub that loads the actual COFF image and provides necessary interface
>to native Windows system calls, then the COFF stub that also loads the
>actual COFF image and provides interface to DPMI and DOS calls, then the
>actual COFF image which runs on both DOS and Windows and uses the
>interface provided by the stub for system calls. Now wouldn't _that_
>be nice? ;-)
Isn't that what EMX does, but only for OS/2? Platform dependant code is
loaded from .dll-files. emx.exe/emx.dll is used in plain DOS, OS/2 system
dll's when running under OS/2.
Gisle V.
- Raw text -