delorie.com/archives/browse.cgi | search |
From: | "W. L. Estes" <wlestes AT hamlet DOT uncg DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | gettextinfo(), cprintf() question |
Date: | Tue, 4 Mar 1997 15:37:52 -0500 |
Organization: | The University of North Carolina at Greensboro |
Lines: | 36 |
Message-ID: | <Pine.GSO.3.93.970304152406.8608A-100000@euler.uncg.edu> |
Reply-To: | "W. L. Estes" <wlestes AT hamlet DOT uncg DOT edu> |
NNTP-Posting-Host: | euler.uncg.edu |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
When i attempt to compile the following: #include <conio.h> int main() { struct text_info { unsigned char winleft; unsigned char wintop; unsigned char winright; unsigned char winbottom; unsigned char attribute; unsigned char normattr; unsigned char currmode; unsigned char screenheight; unsigned char screenwidth; unsigned char curx; unsigned char cury; } ; text_info *foo; gettextinfo (*foo); cprintf ("%u", foo.screenheight); return 0; } I am told that text_info and foo are undeclared. what should i be doing? and what about the call to cprintf? is that gonna work, if not what should that be? i just wanna print the screenheight. thanks in advance, --will
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |