From: "Felix Althaus" Newsgroups: comp.os.msdos.djgpp Subject: farpeekw(...) - problem Date: Sun, 1 Sep 2002 19:29:17 +0200 Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 #include int main() { unsigned short number; number = _farpeekw(_dos_ds, 0x400); } Returned error: '_dos_ds' undeclared Many thanks mfg Felix