Problems with textbackground & textcode

I try ran a Caro chess program with those two functions and all i get is this: "UNDECLARED IDENTIFIER"...
I've included <conio.h> and <graphic.h> but the errors stay the same...
Can anyone help me with this ? Thanks a lot!!!

What about pasting the line of code where the error is at?
Undeclared identifier means you are trying to use a variable that does not exist.
Here's the errors:
"c:\program files\microsoft visual studio\myprojects\caro\include\topplay.h(159) : error C2065: 'textbackground' : undeclared identifier"
"c:\program files\microsoft visual studio\myprojects\caro\include\savegame.h(52) : error C2065: 'textmode' : undeclared identifier"


textbackground(1);
textmode(C80);

Anyone knows how to define these functions ???

Last edited on
Those aren't defined in conio.h (which isn't portable itself.)

And graphics.h is a header for a very old graphics library for 16-bit dos programs. Note that MSVC++ won't have the header file and should produce an error if you try to include it.

See:http://en.wikipedia.org/wiki/Borland_Graphics_Interface

Excerpt:
The last Borland's C++ IDE for DOS is Borland C++ 3.1 (1992). The last C++ environment which supports BGI is Borland C++ 5.02 (1997), which works under Windows but can compile DOS programs.

BGI was accessible in C/C++ with graphics.lib / graphics.h, and in Pascal with graph module.


So, I'm afraid you're probably out of luck there.
Guess i'm really out of luck then...
Do you know any function that is similar to these two ?
Thanks a lot!!!
Topic archived. No new replies allowed.