   Conio
  Does the conio header file work in visual C++ express 2008?  used to have a program trying it and sure i got errors, dont want to start a new one and find i cant use getch CheersCatkill   
  I tried the code shown below and got a warning. warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.1>   c:\program files\microsoft visual studio 9.0\vc\include\conio.h(145) : see declaration of 'getch'#include <iostream>#include <conio.h>using namespace std;int main(){cout << endl << "Press any key to continue...";getch();return( 0 );}I replaced getch() with _getch() and the warning went away.   ;  As gbarnes5840 has pointed out, conio.h does work with VS2008 and does include getch().However, note that since conio.h is not part of the standard, if you have been using another compiler then you cannot assume that any functions in the conio.h you are used to are present in VS's. getch() is okay but apart from that VS's conio.h is pretty sparse as most of the functionality you need is exposed through the console functions in the Win32 API instead.   ;Quote:Original post by EasilyConfusedmost of the functionality you need is exposed through the console functions in the Win32 API instead.Which presents it own portability problems. At least getch() has the advantage that it is a function with a clear and simple purpose, and is relatively easy to reimplement. Which I much prefer to having to hunt for win32 API calls all over the code. :)   ;Quote:Original post by FrunyQuote:Original post by EasilyConfusedmost of the functionality you need is exposed through the console functions in the Win32 API instead.Which presents it own portability problems. At least getch() has the advantage that it is a function with a clear and simple purpose, and is relatively easy to reimplement. Which I much prefer to having to hunt for win32 API calls all over the code. :)I'd totally agree - I just think this is probably why Microsoft's version of conio.h is so sparse compared to the conio.h's that ship with other compilers I've used.To the OP, if portablility is an issue, something like ncurses would be worth looking into instead.   