473,406 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

old functions in TC++ 2.0

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

Sep 27 '06 #1
6 1979
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

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
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

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

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
thanks

Sep 28 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bartosz Wegrzyn | last post by:
I wrote this script for my QOS traffic. I only care about my VOIP service. Rest will fight for the bandwidth. my script: #!/bin/bash echo 1 > /proc/sys/net/ipv4/ip_forward
4
by: lovecreatesbeauty | last post by:
How many member functions will be predefined (provided by compilers implicitly) and called by standard-compliant compilers for a class? Does such a list be given in iso/iec 14882? Which member...
20
by: Ivar | last post by:
Hi, For my supprise I found that functions have 32 parameter limit. Where to find more info about this limitation or similar limitations ? I need at least 50, 100 would be ok. Real life...
22
by: TC | last post by:
I have an Access database application with a lot of custom row functions written in VBA. In other words, a lot of queries contain calculated fields which use functions defined in the modules. I...
5
by: Sakcee | last post by:
Hi I am trying to use pyUnit to create a framework for testing functions I am reading function name, expected output, from a text file. and in python generating dynamic test functions...
25
by: OziRus | last post by:
Hi, This is my first message on this group. I want to ask something about screen-drawing functions. I wrote and compiled below code succesfully on TC IDE in Win-xp. Then i tried to work it on...
0
by: swtstrawberry | last post by:
here are the directions and below the direction is what I have so far. I need help with (B) the bisect function. I've only posted part of my program, if more information is needed please let me...
4
by: Shawn McGrath | last post by:
Hi, I'm trying to expose a C++ class' internals to python via boost::python. I can do integer/boolean functions fine, but as soon as I do a string get/set it craps out. ...
4
by: TC | last post by:
I've used Access for a while, so I know that Access queries which use VBA functions or custom functions cannot be evaluated from outside Access. This was never a problem for me before, but it is a...
14
by: Remo D. | last post by:
I know that a variable (void *) is guaranteed to be able to store any pointer and to allow conversion back to the original pointer. I think, then, that I can store a pointer to a function in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.