delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/22/18:49:52

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Win2000 and nearptr
Date: 22 May 2002 22:13:33 GMT
Organization: Cornell University
Lines: 22
Sender: asu1 AT cornell DOT invalid (on pool-141-149-208-231.syr.east.verizon.net)
Message-ID: <Xns9216B96729254asu1cornelledu@132.236.56.8>
References: <Xns9216C8DF4AB76adminraf256com AT 213 DOT 180 DOT 128 DOT 20> <9003-Wed22May2002205929+0300-eliz AT is DOT elta DOT co DOT il> <Xns9216E630AF6Eadminraf256com AT 213 DOT 180 DOT 128 DOT 20>
NNTP-Posting-Host: pool-141-149-208-231.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1022105613 28067 141.149.208.231 (22 May 2002 22:13:33 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 22 May 2002 22:13:33 GMT
User-Agent: Xnews/5.04.25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Rafal 'Raf256' Maj" <admin AT raf256 DOT com> wrote in
news:Xns9216E630AF6Eadminraf256com AT 213 DOT 180 DOT 128 DOT 20: 

> "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote in
> news:9003-Wed22May2002205929+0300-eliz AT is DOT elta DOT co DOT il: 
> 
>>> __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.
> 
> and what is work around for this problem ? ther must be some way to
> acces 0xB800:0000 in Win2000, is there ?
> 

I would suggest using _farpeekX and _farpokeX functions. They work fine in 
XP. Take a look at info libc func conio.

Sinan.

- Raw text -


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