How to get over this error?



Hi to all!
I have one big problem. I have written some code and I want to program
at the end looks good but theres one uninspected error.
What's going on?
I have written code for programm that needs to do input, output and
searching, for looking better i wanted to use simple DOS word cls
but(!!!!) in C/C++ there i cant use it. so I looked over the internet
and nearest i could find it's this code:

void gotoxy(int, int); // prototype
void clrscr(); // prototype
int main(){

// write text in 4 corners of the screen

clrscr(); // function call
gotoxy(10,10); // function call
cout << "at 10,10";
gotoxy(10,20); // function call
cout << "at 10,20";
gotoxy(20,10); // function call
cout << "at 20,10";
gotoxy(20,20); // function call
cout << "at 20,20";
return 0;
}


// function definition -- requires windows.h
void gotoxy(int x, int y){

HANDLE hConsoleOutput;
COORD dwCursorPosition;
cout.flush();
dwCursorPosition.X = x;
dwCursorPosition.Y = y;
hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hConsoleOutput,dwCursorPosition);
}


// function definition -- requires process.h
void clrscr(){
system("cls");
}



I have compiled it in Microsoft Visual Studio 6.0 and there i had
error, it said :
c:\program files\microsoft visual studio\vc98\include\eh.h(32) : fatal
error C1189: #error : "eh.h is only for C++!"

I looked for line where it is and that becomes that it's in standard
Microsoft Visual Studio 6.0 header file eh.h
line around the error are this:


#ifndef __cplusplus
#error "eh.h is only for C++!"
#endif


So my question is what i have to do to fix this error. I tried a lot of
combinations but I failed.

Thank You for help.

.



Relevant Pages

  • Switch in CSharp very slow?
    ... I have started programming with .NET 2.0 using Microsoft Visual Studio ... and I was doing some image processing and it was taking a long time to ... private static bool GetBitonalValue(bytebuffer, int x, int y, ... when I removed the switch it became 10 ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Switch in CSharp very slow?
    ... >I have started programming with .NET 2.0 using Microsoft Visual Studio ... > process and finally I found that I used a switch and it made it slower: ... > private static bool GetBitonalValue(bytebuffer, int x, int y, ... > times faster. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Reading doubles from text file in visual C 6 doesnt work
    ... > as doubles, but microsoft visual studio 6 won't allow it. ... > int main ... > to a float type, then the value is read in properly, although its ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Switch in CSharp very slow?
    ... >I have started programming with .NET 2.0 using Microsoft Visual Studio ... > and I was doing some image processing and it was taking a long time to ... > process and finally I found that I used a switch and it made it slower: ... > private static bool GetBitonalValue(bytebuffer, int x, int y, ...
    (microsoft.public.dotnet.languages.csharp)