delorie.com/archives/browse.cgi | search |
From: | haphillips AT my-deja DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: DJGPP beginner's question - clrscr() |
Date: | Mon, 09 Aug 1999 10:05:37 GMT |
Organization: | Deja.com - Share what you know. Learn what you don't. |
Lines: | 33 |
Message-ID: | <7om95e$541$1@nnrp1.deja.com> |
References: | <7oedln$uf2$1 AT nnrp1 DOT deja DOT com> <7oeqd6$2g5$1 AT taliesin DOT netcom DOT net DOT uk> |
NNTP-Posting-Host: | 209.153.197.167 |
X-Article-Creation-Date: | Mon Aug 09 10:05:37 1999 GMT |
X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) |
X-Http-Proxy: | 1.1 x21.deja.com:80 (Squid/1.1.22) for client 209.153.197.167 |
X-MyDeja-Info: | XMYDJUIDhaphillips |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
In article <7oeqd6$2g5$1 AT taliesin DOT netcom DOT net DOT uk>, "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk> wrote: > haphillips AT my-deja DOT com wrote in message <7oedln$uf2 $1 AT nnrp1 DOT deja DOT com>... > >In my first try at using the DJGPP C compiler, I compiled and ran in a > >Win98 DOS box a short C program that I had compiled using Turbo C v. 2 > >(yes, I still have it!). gcc compiled my program without > >error, but clrscr() produced a runtime error. I don't have a clue why > >and would appreciate anyone's help. > > Can you post the smallest snippet of code which will produce this error. > I gathered from your reply and some other postings that clrscr should work. Rather than extracting a snippet of code from my program, I inserted clrscr into "Hello world." It compiled and ran perfectly. Then I reinserted the clrscr statement into the offending program, compiled and ran it. Here too clrscr worked perfectly. I don't know what produced the original runtime error, but am happy to know that clrscr and other conio functions work in a Win98 DOS box. (I had wondered whether I would have to go into MS-DOS mode.) Some other short Turboc C programs were also compiled with DJGPP and run without error. Thanks for your assistance. Harry Philllips Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |