Mail Archives: djgpp/1997/03/06/04:57:36
W. L. Estes (wlestes AT hamlet DOT uncg DOT edu) wrote:
: 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;
: } ;
This should be needless (already defined in header files).
: text_info *foo;
Change to "text_info foo;"
: gettextinfo (*foo);
Change to "gettextinfo(&foo);"
: cprintf ("%u", foo.screenheight);
: return 0;
: }
: I am told that text_info and foo are undeclared. what should i be doing?
See above.
: and what about the call to cprintf? is that gonna work, if not what should
: that be? i just wanna print the screenheight.
Why not use ScreenRows function (defined in pc.h)?
--
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/
- Raw text -