By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,750 Members | 1,214 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,750 IT Pros & Developers. It's quick & easy.

old functions in TC++ 2.0

P: n/a
In Devcpp, i am not able to access functions such as gotoxy( ), getch(
) et cetera..
how do i do so?

Sep 27 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
MC felon schrieb:
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
Sep 27 '06 #2

P: n/a

MC felon wrote:
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

Sep 27 '06 #3

P: n/a
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)

Sep 28 '06 #4

P: n/a

MC felon wrote:
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)
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!

Sep 28 '06 #5

P: n/a

MC felon wrote:
is there any alternative to getch() ?? or gotoxy()?
(by the way: Pack Man was unsuccessful in recognizing this DEVPAK)
The curses library is available on many platforms.
Under Win32, there is a port of the PDCurses library.
http://pdcurses.sourceforge.net/

Sep 28 '06 #6

P: n/a
thanks

Sep 28 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.