delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/19/08:23:51

Date: Thu, 19 Jul 2001 15:23:48 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Sterten AT aol DOT com
cc: djgpp AT delorie DOT com
Subject: Re: pokeb peekb
In-Reply-To: <5f.18129a39.288824a1@aol.com>
Message-ID: <Pine.SUN.3.91.1010719152138.1483B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 19 Jul 2001 Sterten AT aol DOT com wrote:

> OK, I knew, that I had perhaps to include a  main()

Definitely!

> long int ScreenPrimary=0xb8000;

Don't do that, you might be mighty wrong!  Instead, do this:

#include <conio.h>

This will pull in the correct definition of ScreenPrimary.

> looks fine and easy now , but took me quite some time !

You wanted to do something extremely system-dependent, and you didn't 
even know that a C program must have a main function.  That's quite a 
steep learning curve, if you ask me.

- Raw text -


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