In DOS you need to either update the hardware registers directly, or use a BIOS call - you hide the cursor by setting the start and end row of the cusor size to the same value if I remember right [or was it to set both to a "higher value than the number of rows of the text" - it is about 15 years since I did this, so I can't quite remember... (I think I'm doing quite well in remembering roughly how it's done!) ]

Well, which OS / Compiler do you have?
Whatever the answer is, it will depend on that information.

I'm using windows xp sp 2 and using dev c 4.9.9.2..

In DOS you need to either update the hardware registers directly, or use a BIOS call - you hide the cursor by setting the start and end row of the cusor size to the same value if I remember right [or was it to set both to a "higher value than the number of rows of the text" - it is about 15 years since I did this, so I can't quite remember... (I think I'm doing quite well in remembering roughly how it's done!) ]

is it really neccesary to update? because I want to give that program to my friends.. do I have to update all of their hardware registers?

I tried using each windows and wincon but still doesn't working, wincon has different errors..

in line 114

Code:

BOOL WINAPI GetConsoleCursorInfo(

Why are you declaring a function prototype that is part of the Windows API? You should be able to use it directly from the windows.h.

As I said earlier, you NEED to include the whole of "Windows.h" unless you want to go through a ton of more or less strange header files and figure out exactly what parts are needed and what aren't, etc, etc.

Also, if you still have problems, post about 10 lines around the problem area, as it can be that it's a line before/after that gives the ACTUAL problem.

--
Mats

Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.

Why are you declaring a function prototype that is part of the Windows API? You should be able to use it directly from the windows.h.

As I said earlier, you NEED to include the whole of "Windows.h" unless you want to go through a ton of more or less strange header files and figure out exactly what parts are needed and what aren't, etc, etc.

Also, if you still have problems, post about 10 lines around the problem area, as it can be that it's a line before/after that gives the ACTUAL problem.