www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/02/10:15:19

From: brunobg AT geocities DOT com (Bruno Barberi Gnecco)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: what's wrong with this code?
Date: 2 Aug 1998 09:10:01 -0500
Organization: Newscene Public Access Usenet News Service (http://www.newscene.com/)
Lines: 20
Message-ID: <35c471bf.516109@news3.newscene.com>
References: <35C3746C DOT 5BEA866A AT xyz DOT net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sat, 01 Aug 1998 12:02:52 -0800, Bjorn Hansen <viking AT xyz DOT net> wrote:

>I know that this must be something simple that I am missing but when I
>try to compile this:
>#include <stdio.h>
>#include <sys/farptr.h>
>main()
>{
> char v;
> v=_farpeekb(_dos_ds,0xA0000);
> printf("%c",v);
>}
>I get a Error of '_dos_ds' undeclared
>what am I doing wrong or not doing?

You should include <go32.h>.

"There's never enough time to do all the nothing you want" Bill Watterson 
Bruno Barberi Gnecco <brunobg AT geocities DOT com> ICQ #1383173 - PGP 5.0i user 
My other OS is Linux -=- http://graphx.home.ml.org -=- Electric Eng, Poli

- Raw text -


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