delorie.com/archives/browse.cgi | search |
Date: | Sat, 13 Oct 2001 14:50:07 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | Felix Natter <f DOT natter AT ndh DOT net> |
Message-Id: | <8484-Sat13Oct2001145006+0200-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <87d73r96yo.fsf@mybaby.home.felix> (message from Felix Natter on |
13 Oct 2001 12:20:47 +0200) | |
Subject: | Re: Windows 2000: __dpmi_physical_address_mapping fails |
References: | <87d73r96yo DOT fsf AT mybaby DOT home DOT felix> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Felix Natter <f DOT natter AT ndh DOT net> > Newsgroups: comp.os.msdos.djgpp > Date: 13 Oct 2001 12:20:47 +0200 > > with code like this: > > __dpmi_meminfo meminf; > meminf.address = vbe_modeinfo.PhysicalBasePtr; > meminf.size = screensize; > if (__dpmi_physical_address_mapping(&meminf) == - 1) > => error > > "__dpmi_physical_address_mapping" fails on Windows 2000 (both in the DOS > box or when I select Dos on startup). > > I am using cwsdpmi (the version that comes with djdev2.02). Please post a minimal complete program which can be compiled and which exhibits this behavior. (The main detail you left out are the values of the base address and the size you pass to __dpmi_physical_address_mapping.) Also, how exactly does it fail? do you get -1 from the function? If not, please tell the details about the failure. > does a more recent version of cwsdpmi fix this or is there another > workaround ? The latest CWSDPMI does indeed fix a subtle problem with this DPMI function, but CWSDPMI has nothing to do with running your program on Windows, only on DOS. So it's not at all clear that this is a CWSDPMI issue.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |