old functions in TC++ 2.0

M

MC felon

In Devcpp, i am not able to access functions such as gotoxy( ), getch(
) et cetera..
how do i do so?
 
M

Markus Grueneis

MC said:
In Devcpp, i am not able to access functions such as gotoxy( ), getch(

You probably want to ask in a devcpp group or mailing list.
) et cetera..
how do i do so?

AFAIK, gotoxy() and getch() are defined in conio.h, which is not a
standard header, and therefore quite offtopic here. devcpp comes with
mingw by default, I don't think that conio.h is provided by this
installation.


-- Markus
 
T

toton

MC said:
In Devcpp, i am not able to access functions such as gotoxy( ), getch(
) et cetera..
how do i do so?
They are defined in non standard borland header for C conio.h It exists
for console 16 bit platform, while devcpp (runs with gcc) is a 32 bit
platform.
If you really need it (i dont think, it is impossible to live without
this file.) use the follwoing link
http://devpaks.org/details.php?devpak=16
This is a 32 bit version of the library and can be used with GCC.
However how old is the library is, or functioning properly with the
current version, I dont know (It used to work, 2-3 yeasr ago, when once
I used this library) .

abir
 
M

MC felon

They are defined in non standard borland header for C conio.h It exists
for console 16 bit platform, while devcpp (runs with gcc) is a 32 bit
platform.
If you really need it (i dont think, it is impossible to live without
this file.) use the follwoing link
http://devpaks.org/details.php?devpak=16
This is a 32 bit version of the library and can be used with GCC.
However how old is the library is, or functioning properly with the
current version, I dont know (It used to work, 2-3 yeasr ago, when once
I used this library) .

abir

is there any alternative to getch() ?? or gotoxy()?
(by the way: Pack Man was unsuccessful in recognizing this DEVPAK)
 
T

toton

MC said:
is there any alternative to getch() ?? or gotoxy()?
(by the way: Pack Man was unsuccessful in recognizing this DEVPAK)
getch equivalent in std c++ is cin.get() ; If you need it just to pause
the system , can use system("PAUSE") //only for windows! (PAUSE is a
windows system call) .
gotoxy is nonstandard. And I dont know about the link , once it was
there & working.
If you want to implement it by urself, you need to use system call for
it. For mingw and windows it is pretty simple , include windows.h, and
use the windows call as,
void gotoxy(int x, int y){
::SetConsoleCursorPosition :):GetStdHandle (STD_OUTPUT_HANDLE),
(COORD){x, y});
}
Dont forget to link appropriate library! Other platform consult the
system API ...
Cheers!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top