tags:

views:

45

answers:

2

Hi, In VS 2008, I created an empty project in VC++ and added a source file as . . .

`

 #include<stdio.h>    

 #include<conio.h>

int main()
{
  ....
  clrscr();
  .....
  return 0;
}

`

I get these errors/warnings :

Warning 1 warning C4013: 'clrscr' undefined; assuming extern returning int c:\tc\toh.c 170 TOH

Error 3 error LNK2019: unresolved external symbol _clrscr referenced in function _main TOH.obj TOH

What the problem??

Thanks in advance..

+2  A: 

Are you trying to mix Borland libraries with VC++? That could be the problem. Can you clear the console instead by sending a bunch of \ns?

Dave
A: 

Use the FillConsoleOutputCharacter and FillConsoleOutputAttribute functions. There is even an exmaple of how to do that at MSDN, convenniently called "Clearing the screen"

Jim Brissom