delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/28/23:45:21

From: "Charles Sandmann" <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DXEs and other OSes
Date: Fri, 28 Jul 2000 22:28:11
Organization: Aspen Technology, Inc.
Lines: 21
Message-ID: <398208fb.sandmann@clio.rice.edu>
References: <qsb3oss4tg5e4kfogs5roa4dbgnqce4ie8 AT 4ax DOT com>
NNTP-Posting-Host: dcloan.hou.aspentech.com
X-Trace: selma.aspentech.com 964841843 11409 10.32.115.107 (29 Jul 2000 03:37:23 GMT)
X-Complaints-To: postmaster AT aspentech DOT com
NNTP-Posting-Date: 29 Jul 2000 03:37:23 GMT
X-NewsEditor: ED-1.5.8
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> >Then there was the plan to make these dual format Win32 console and DJGPP
> >extended apps
> 
> I could use this.  Is there way to use a DJGPP program as the DOS stub
> of a Win32 program?  I want the DJGPP program to do the actual work
> and the Win32 program to contain code to "run this program's DOS stub"
> and an icon.  Is this possible?

All Win32 programs have a DOS stub which normally just prints an error
about Windows being required - but you can put anything there.

My original plan was to have a set of libc wrappers which knew about the
environment.  If you were in a Win32 environment (similar to MINGWIN) then
you called the Win32 libs (with a little fixup here and there for better
compatibility).  If you started in DOS mode, it ran the DOS stub which
then loaded the DXE for libc support and then jumped to the common 32-bit
code (with only the libc calls handled differently).

This was going to be a rather large project at the time, but the availability
of other Win32 compilers today would make it easier.  But I've completely 
lost the need for DOS compatibility, so I'm pretty exclusively Win32 today.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019