delorie.com/archives/browse.cgi | search |
Date: | Wed, 22 May 2002 20:59:30 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | "Rafal 'Raf256' Maj" <admin AT raf256 DOT com> |
Message-Id: | <9003-Wed22May2002205929+0300-eliz@is.elta.co.il> |
X-Mailer: | emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <Xns9216C8DF4AB76adminraf256com@213.180.128.20> |
Subject: | Re: Win2000 and nearptr |
References: | <Xns9216C8DF4AB76adminraf256com AT 213 DOT 180 DOT 128 DOT 20> |
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: "Rafal 'Raf256' Maj" <admin AT raf256 DOT com> > Newsgroups: comp.os.msdos.djgpp > Date: 22 May 2002 17:41:39 GMT > > i'm using following code to acces text mode video memory, but this code > doesn't work in Win2k. How will look code giving same effect but on win2k ? > > __djgpp_nearptr_enable(); > *((unsigned char*)0xB8000 + __djgpp_conventional_base + ((x+y*80)*2))='A'; You cannot use nearptr facilities on Windows 2000, Windows NT, and Windows XP (and any other descendants of the NT family): those versions of Windows don't allow to define a huge segment limit for the data descriptor that is needed for nearptrs to work. This is in the FAQ, btw: see section 3.3 there.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |