From: "Johan Venter" Newsgroups: comp.os.msdos.djgpp References: <7ulo1q$5jf$1 AT news4 DOT svr DOT pol DOT co DOT uk> Subject: Re: memset func Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Date: Thu, 21 Oct 1999 17:37:37 +1000 NNTP-Posting-Host: 139.134.162.154 X-Trace: newsfeeds.bigpond.com 940498187 139.134.162.154 (Thu, 21 Oct 1999 19:29:47 EST) NNTP-Posting-Date: Thu, 21 Oct 1999 19:29:47 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hammy wrote in message news:7ulo1q$5jf$1 AT news4 DOT svr DOT pol DOT co DOT uk... > im sure you dont use a & for the address of a pointer? > anyway, videbuffer is a char * set to the address of the videoram by the vbe > stuff You can't do that in DJGPP. You are violating memory protection. To access the VBE videoram in DJGPP, you need to either 1) use the far* functions or 2) enable near pointers which is not recommended as it disables memory protection. -- Johan Venter ICQ 3643877 - jventer AT writeme DOT com The TPU DJGPP Interest Group - http://surf.to/djgppig The RSXNTDJ 1.5 HOWTO - http://surf.to/rsxntdj