www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/01/13:30:17

From: "Felix Althaus" <felix DOT althaus AT swissonline DOT ch>
Newsgroups: comp.os.msdos.djgpp
Subject: farpeekw(...) - problem
Date: Sun, 1 Sep 2002 19:29:17 +0200
Lines: 35
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.162.64.160
Message-ID: <3d724e1d$1@news.swissonline.ch>
X-Trace: news.swissonline.ch 1030901277 217.162.64.160 (1 Sep 2002 19:27:57 +0200)
X-Complaints-To: abuse AT swissonline DOT ch
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello all!

I'm a newbie and I have (perhaps because of that) problems with the use of
the farpeekw(); function:
In the web reference is written that to access DOS memory, "_dos_ds" should
be passed as the selector argument. But my djgpp doesn't know this
"_dos_ds".
What do I wrong?


Following my little test program:

#include <dos.h>
#include <sys/farptr.h>

int main()
{
unsigned short number;
number = _farpeekw(_dos_ds, 0x400);
}

Returned error: '_dos_ds' undeclared


Many thanks
mfg

Felix







- Raw text -


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