Date: Wed, 22 May 2002 20:59:30 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Rafal 'Raf256' Maj" 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: Subject: Re: Win2000 and nearptr References: 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 Precedence: bulk > From: "Rafal 'Raf256' Maj" > 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.