Dave's Brain

Browse - Programming Tips - Why aren't Borland C++'s conio functions working for me?

Date: 2010apr23
OS: Windows
Language: C/C++

Q.  Why aren't Borland C++'s conio functions working for me?

A.  The <conio.h> functions worked fine for older versions
of Windows but don't work for modern versions.

These are the functions:

clreol( void ); clrscr( void ); gotoxy( int __x, int __y ); getch( void ); getche( void ); kbhit( void ); putch( int __c ); wherex( void ); wherey( void );
I have found that they only work intermittently for me in Vista and later. Instead use ReadConsoleInput WriteConsole and friends. http://www.davekb.com/search.php?target=ReadConsoleInput+WriteConsole

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.