delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/19/09:30:03

From: "Stephen Pelc" <sfp AT mpeltd DOT demon DOT co DOT uk>
Newsgroups: comp.lang.forth,alt.msdos.programmer,comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: VirtualAlloc under DOS extenders?
Date: Tue, 19 Oct 1999 06:47:17 +0100
Message-ID: <MPLT485410BA81@mpeltd.demon.co.uk>
References: <7uf7ak$gno$1 AT nnrp1 DOT deja DOT com>
NNTP-Posting-Host: mpeltd.demon.co.uk
X-NNTP-Posting-Host: mpeltd.demon.co.uk:158.152.46.91
X-Trace: news.demon.co.uk 940323791 nnrp-11:23783 NO-IDENT mpeltd.demon.co.uk:158.152.46.91
X-Complaints-To: abuse AT demon DOT net
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Lines: 34
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

m_l_g3 AT my-deja DOT com wrote in message <7uf7ak$gno$1 AT nnrp1 DOT deja DOT com>...
>I have to port a Forth interpreter from Win32 to MS-DOS + DOS-extender.
>The Forth executable code uses absolute addresses, and under Win32
>the function VirtualAlloc was used to load the dictionary starting from
>4000000h. Uncommitted pages were used to guard against stack underflow,
>data section overflow, etc.
[snip]
>It is desirable that
>
>1) the same Forth binary code execute under both operating systems (the
>system-specific functions like READ-FILE are in the C wrapper)
>
>2) the MS-DOS wrapper run under Win32 ('95, '98, 'NT).

Are you allowed separate wrappers for DOS and Win32?

I don't really see the problem. ProForth for DOS runs fine under all DOS
versions, and under all versions of Windows. The same binary! The same
wrapper! See the new low, low prices on the website.

If you want to run the same binary either as a Windows console app
and under DOS then you may need to make changes. However, if all
you want to do is to capture DOS program output in a Windows app,
then we can help you already. Our VFX front ends can do this
already.
--
Stephen Pelc, sfp AT mpeltd DOT demon DOT co DOT uk
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)2380 631441, fax: +44 (0)2380 339691
web: http://www.mpeltd.demon.co.uk



- Raw text -


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