User forums > Using Code::Blocks

_setcursortype(); problem

(1/3) > >>

Deamon:
Hi folks,

i thought to give C::B a try along my OGRE project. Tried to compile some of my old console code that i have developed under Borland Builder 5 but encountered a problem with the _setcursortype(); function.

Actualy the cursor don't do what it supposed to do and i don't know why.

When i compile my hello world app with _setcursortype(_NOCURSOR); the cursor appears like this:



Not that it just appears as a normal cursor it also appears on the top of the line and not on the bottom of it :?

When i compile it with _setcursortype(_NORMALCURSOR); the cursor appears not as a normal cursor but as a half solid cursor !!!



When i compile it with  _setcursortype(_SOLIDCURSOR); it appears as its supposed to:



I tried it with GNU and also Borland 5.5 compiler but with the same results

I have no clue WTF is wrong  :?

Anybody ?

Deamon

takeshimiya:
_setcursortype() is not ANSI/ISO C neither POSIX standard.
It came with conio.h provided with old borland compilers, it's not standard, and obviously not portable.

Do you really need that non-standard non-portable functionality?

Deamon:

--- Quote from: Takeshi Miya on March 21, 2006, 07:59:05 pm ---_setcursortype() is not ANSI/ISO C neither POSIX standard.
It came with conio.h provided with old borland compilers, it's not standard, and obviously not portable.
--- End quote ---

Didn't knew that. Thanks.


--- Quote ---Do you really need that non-standard non-portable functionality?

--- End quote ---

If there is no ANSI compliant equivalent then yes! Is there any ?

Is there a way to let the Compiler use this old conio.h ?

EDIT: Is there any online documentation or docs for download that explain all the functions of the ANSI .h's ?

regards
Deamon

takeshimiya:

--- Quote from: Deamon on March 21, 2006, 09:35:09 pm ---If there is no ANSI compliant equivalent then yes! Is there any ?

--- End quote ---
Not that I know, probably not, because it's not something portable.


--- Quote from: Deamon on March 21, 2006, 09:35:09 pm ---Is there a way to let the Compiler use this old conio.h ?

--- End quote ---
I don't know but I wouldn't advice that.


--- Quote from: Deamon on March 21, 2006, 09:35:09 pm ---EDIT: Is there any online documentation or docs for download that explain all the functions of the ANSI .h's ?

--- End quote ---
Yes, here http://www.cppreference.com/ or here: http://www.google.com :)

PsYhLo:
Deamon use conio2 this is an opensource project on sourceforge.net http://conio.sourceforge.net/
it is very useful

Navigation

[0] Message Index

[#] Next page

Go to full version