From: "A. Sinan Unur" 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: References: <9003-Wed22May2002205929+0300-eliz AT is DOT elta DOT co DOT il> 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" wrote in news:Xns9216E630AF6Eadminraf256com AT 213 DOT 180 DOT 128 DOT 20: > "Eli Zaretskii" 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.