Connecting Tech Pros Worldwide Forums | Help | Site Map

old functions in TC++ 2.0

MC felon
Guest
 
Posts: n/a
#1: Sep 27 '06
In Devcpp, i am not able to access functions such as gotoxy( ), getch(
) et cetera..
how do i do so?


Markus Grueneis
Guest
 
Posts: n/a
#2: Sep 27 '06

re: old functions in TC++ 2.0


MC felon schrieb:
Quote:
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.
Quote:
) 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
toton
Guest
 
Posts: n/a
#3: Sep 27 '06

re: old functions in TC++ 2.0



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

MC felon
Guest
 
Posts: n/a
#4: Sep 28 '06

re: old functions in TC++ 2.0


Quote:
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)

toton
Guest
 
Posts: n/a
#5: Sep 28 '06

re: old functions in TC++ 2.0



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

SuperKoko
Guest
 
Posts: n/a
#6: Sep 28 '06

re: old functions in TC++ 2.0



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

MC felon
Guest
 
Posts: n/a
#7: Sep 28 '06

re: old functions in TC++ 2.0


thanks

Closed Thread